Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 EFI runtime code section needs to b...



details:   https://anonhg.NetBSD.org/src/rev/db4fb49e1a69
branches:  trunk
changeset: 445519:db4fb49e1a69
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Oct 31 14:15:12 2018 +0000

description:
EFI runtime code section needs to be writable, otherwise we fail with a permission fault at shutdown on QEMU when writing to the RTC

diffstat:

 sys/arch/aarch64/aarch64/efi_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r a22e072c3ec9 -r db4fb49e1a69 sys/arch/aarch64/aarch64/efi_machdep.c
--- a/sys/arch/aarch64/aarch64/efi_machdep.c    Wed Oct 31 13:42:24 2018 +0000
+++ b/sys/arch/aarch64/aarch64/efi_machdep.c    Wed Oct 31 14:15:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efi_machdep.c,v 1.2 2018/10/31 13:01:48 jmcneill Exp $ */
+/* $NetBSD: efi_machdep.c,v 1.3 2018/10/31 14:15:12 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.2 2018/10/31 13:01:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.3 2018/10/31 14:15:12 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -45,8 +45,8 @@
 
        switch (type) {
        case ARM_EFIRT_MEM_CODE:
-               attr = LX_BLKPAG_OS_READ |
-                      LX_BLKPAG_AF | LX_BLKPAG_AP_RO | LX_BLKPAG_UXN |
+               attr = LX_BLKPAG_OS_READ | LX_BLKPAG_OS_WRITE |
+                      LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN |
                       LX_BLKPAG_ATTR_NORMAL_WB;
                break;
        case ARM_EFIRT_MEM_DATA:



Home | Main Index | Thread Index | Old Index