git: 5f8e7b0c7fdc - stable/13 - Map the ACPI tables into the DMAP
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 May 2022 09:25:00 UTC
The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=5f8e7b0c7fdcc87e4e1a49a5c1c8c816da9f271d commit 5f8e7b0c7fdcc87e4e1a49a5c1c8c816da9f271d Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-04-29 12:02:15 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-05-16 08:32:59 +0000 Map the ACPI tables into the DMAP When we try to load these tables via acpidump(8) we need them to be in the DMAP for /dev/mem to access. Add the EFI ACPI reclaim memory type to the list of memory we map into DMAP but not used by the kernel as this is the recommended place to put these. Sponsored by: The FreeBSD Foundation (cherry picked from commit 5b651b501a466a0c2a8ec6b5afaae348c410f116) --- sys/arm64/arm64/machdep.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index 7b135a3623ba..14d0dcbf6c2f 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -485,6 +485,11 @@ add_efi_map_entry(struct efi_md *p) { switch (p->md_type) { + case EFI_MD_TYPE_RECLAIM: + /* + * The recomended location for ACPI tables. Map into the + * DMAP so we can access them from userspace via /dev/mem. + */ case EFI_MD_TYPE_RT_CODE: /* * Some UEFI implementations put the system table in the