Source-Changes-HG archive

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

[src/trunk]: src/sys/stand/efiboot Assign VAs for EFI runtime mmio ranges



details:   https://anonhg.NetBSD.org/src/rev/833594f14507
branches:  trunk
changeset: 836695:833594f14507
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Oct 31 13:00:35 2018 +0000

description:
Assign VAs for EFI runtime mmio ranges

diffstat:

 sys/stand/efiboot/efiboot.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r f40526852fc8 -r 833594f14507 sys/stand/efiboot/efiboot.c
--- a/sys/stand/efiboot/efiboot.c       Wed Oct 31 12:59:43 2018 +0000
+++ b/sys/stand/efiboot/efiboot.c       Wed Oct 31 13:00:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efiboot.c,v 1.10 2018/10/28 10:17:47 jmcneill Exp $ */
+/* $NetBSD: efiboot.c,v 1.11 2018/10/31 13:00:35 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -144,6 +144,11 @@
                        fdt_appendprop_u64(fdt, fdt_path_offset(fdt, "/chosen"), "netbsd,uefi-runtime-data", md->VirtualStart);
                        fdt_appendprop_u64(fdt, fdt_path_offset(fdt, "/chosen"), "netbsd,uefi-runtime-data", md->NumberOfPages * EFI_PAGE_SIZE);
                        break;
+               case EfiMemoryMappedIO:
+                       fdt_appendprop_u64(fdt, fdt_path_offset(fdt, "/chosen"), "netbsd,uefi-runtime-mmio", md->PhysicalStart);
+                       fdt_appendprop_u64(fdt, fdt_path_offset(fdt, "/chosen"), "netbsd,uefi-runtime-mmio", md->VirtualStart);
+                       fdt_appendprop_u64(fdt, fdt_path_offset(fdt, "/chosen"), "netbsd,uefi-runtime-mmio", md->NumberOfPages * EFI_PAGE_SIZE);
+                       break;
                default:
                        break;
                }



Home | Main Index | Thread Index | Old Index