diff options
| author | Peter Jones <pjones@redhat.com> | 2025-02-20 13:51:29 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-02-24 15:24:24 -0500 |
| commit | 589c3f289e05454be23507767439cb9769a2264a (patch) | |
| tree | 014edcb53396ef98f1f87fc1696e7de276888a3b /include/memattrs.h | |
| parent | e4857b4150b0a982d587ea9ccbc73137e8887fd8 (diff) | |
| download | efi-boot-shim-589c3f289e05454be23507767439cb9769a2264a.tar.gz efi-boot-shim-589c3f289e05454be23507767439cb9769a2264a.zip | |
Move memory attribute support to its own file.
This moves the EFI Memory Attribute Protocol helper functions to their
own file, since they're not related to PE things.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include/memattrs.h')
| -rw-r--r-- | include/memattrs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/memattrs.h b/include/memattrs.h new file mode 100644 index 00000000..8fefef22 --- /dev/null +++ b/include/memattrs.h @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: BSD-2-Clause-Patent +/* + * memattrs.h - EFI and DXE memory attribute helpers + * Copyright Peter Jones <pjones@redhat.com> + */ + +#ifndef SHIM_MEMATTRS_H_ +#define SHIM_MEMATTRS_H_ + +extern EFI_STATUS get_mem_attrs (uintptr_t addr, size_t size, uint64_t *attrs); +extern EFI_STATUS update_mem_attrs(uintptr_t addr, uint64_t size, + uint64_t set_attrs, uint64_t clear_attrs); + +#endif /* !SHIM_MEMATTRS_H_ */ +// vim:fenc=utf-8:tw=75:noet |
