Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot When building /memory, skip EFI runtime me...



details:   https://anonhg.NetBSD.org/src/rev/1d4de6ffb363
branches:  trunk
changeset: 445514:1d4de6ffb363
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Oct 31 12:59:43 2018 +0000

description:
When building /memory, skip EFI runtime memory ranges

diffstat:

 sys/stand/efiboot/efifdt.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r a9fff3ca9b63 -r 1d4de6ffb363 sys/stand/efiboot/efifdt.c
--- a/sys/stand/efiboot/efifdt.c        Wed Oct 31 09:31:01 2018 +0000
+++ b/sys/stand/efiboot/efifdt.c        Wed Oct 31 12:59:43 2018 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -158,6 +158,8 @@
                    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))



Home | Main Index | Thread Index | Old Index