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 Don't mark EFI runtime pages LX_BLK...



details:   https://anonhg.NetBSD.org/src/rev/823a164a851f
branches:  trunk
changeset: 953755:823a164a851f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 20 06:48:23 2021 +0000

description:
Don't mark EFI runtime pages LX_BLKPAG_OS_READ | LX_BLKPAG_OS_WRITE as
these bits are only used by the current pmap fault code and these are
wired pages which will never fault.

diffstat:

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

diffs (40 lines):

diff -r b6c26a76745d -r 823a164a851f sys/arch/aarch64/aarch64/efi_machdep.c
--- a/sys/arch/aarch64/aarch64/efi_machdep.c    Sat Mar 20 05:58:22 2021 +0000
+++ b/sys/arch/aarch64/aarch64/efi_machdep.c    Sat Mar 20 06:48:23 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efi_machdep.c,v 1.8 2020/10/22 07:31:15 skrll Exp $ */
+/* $NetBSD: efi_machdep.c,v 1.9 2021/03/20 06:48:23 skrll 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.8 2020/10/22 07:31:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.9 2021/03/20 06:48:23 skrll Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -53,18 +53,15 @@
 
        switch (type) {
        case ARM_EFIRT_MEM_CODE:
-               attr = LX_BLKPAG_OS_READ | LX_BLKPAG_OS_WRITE |
-                      LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN |
+               attr = LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN |
                       LX_BLKPAG_ATTR_NORMAL_WB;
                break;
        case ARM_EFIRT_MEM_DATA:
-               attr = LX_BLKPAG_OS_READ | LX_BLKPAG_OS_WRITE |
-                      LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN | LX_BLKPAG_PXN |
+               attr = LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN | LX_BLKPAG_PXN |
                       LX_BLKPAG_ATTR_NORMAL_WB;
                break;
        case ARM_EFIRT_MEM_MMIO:
-               attr = LX_BLKPAG_OS_READ | LX_BLKPAG_OS_WRITE |
-                      LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN | LX_BLKPAG_PXN |
+               attr = LX_BLKPAG_AF | LX_BLKPAG_AP_RW | LX_BLKPAG_UXN | LX_BLKPAG_PXN |
                       LX_BLKPAG_ATTR_DEVICE_MEM;
                break;
        default:



Home | Main Index | Thread Index | Old Index