Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2022 14:04:47 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1d16a1306ae3 - stable/13 - Include the EFI Runtime Code in the DMAP
Message-ID:  <202205031404.243E4lg5077976@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=1d16a1306ae3d27eabe50ddda14c1d33c855c39d

commit 1d16a1306ae3d27eabe50ddda14c1d33c855c39d
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-04-09 20:17:43 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-05-03 14:04:04 +0000

    Include the EFI Runtime Code in the DMAP
    
    Some UEFI implementations place the system table in a runtime code
    memory region. Include it in the DMAP so we can read it later.
    
    Reviewed by:    kevans
    Differential Revision: https://reviews.freebsd.org/D34861
    
    (cherry picked from commit 57e47ae514b6ab605298b4595e0219048f59ab7a)
---
 sys/arm64/arm64/machdep.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
index c4a2c48ff8ba..28105661c120 100644
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -485,6 +485,12 @@ add_efi_map_entry(struct efi_md *p)
 {
 
 	switch (p->md_type) {
+	case EFI_MD_TYPE_RT_CODE:
+		/*
+		 * Some UEFI implementations put the system table in the
+		 * runtime code section. Include it in the DMAP, but will
+		 * be excluded from phys_avail later.
+		 */
 	case EFI_MD_TYPE_RT_DATA:
 		/*
 		 * Runtime data will be excluded after the DMAP



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205031404.243E4lg5077976>