Module Name:    src
Committed By:   jmcneill
Date:           Wed Oct 31 12:59:43 UTC 2018

Modified Files:
        src/sys/stand/efiboot: efifdt.c

Log Message:
When building /memory, skip EFI runtime memory ranges


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/stand/efiboot/efifdt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/stand/efiboot/efifdt.c
diff -u src/sys/stand/efiboot/efifdt.c:1.10 src/sys/stand/efiboot/efifdt.c:1.11
--- src/sys/stand/efiboot/efifdt.c:1.10	Wed Oct 31 09:13:32 2018
+++ src/sys/stand/efiboot/efifdt.c	Wed Oct 31 12:59:43 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: efifdt.c,v 1.10 2018/10/31 09:13:32 jmcneill Exp $ */
+/* $NetBSD: efifdt.c,v 1.11 2018/10/31 12:59:43 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <[email protected]>
@@ -158,6 +158,8 @@ efi_fdt_memory_map(void)
 		    md->PhysicalStart, md->VirtualStart,
 		    (u_long)md->NumberOfPages * EFI_PAGE_SIZE);
 #endif
+		if ((md->Attribute & EFI_MEMORY_RUNTIME) != 0)
+			continue;
 		if ((md->Attribute & EFI_MEMORY_WB) == 0)
 			continue;
 		if (!FDT_MEMORY_USABLE(md))

Reply via email to