Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include Drop DEVMAP_{TRUNK_ADDR,ROUND_SIZE}...



details:   https://anonhg.NetBSD.org/src/rev/eef19d2dad5b
branches:  trunk
changeset: 1006010:eef19d2dad5b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 30 16:05:15 2019 +0000

description:
Drop DEVMAP_{TRUNK_ADDR,ROUND_SIZE} to 4KB pages now that pmap_map_chunk
allows this.

diffstat:

 sys/arch/aarch64/include/pmap.h |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r 92ab6c7c750e -r eef19d2dad5b sys/arch/aarch64/include/pmap.h
--- a/sys/arch/aarch64/include/pmap.h   Mon Dec 30 16:03:48 2019 +0000
+++ b/sys/arch/aarch64/include/pmap.h   Mon Dec 30 16:05:15 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.28 2019/12/28 17:19:43 jmcneill Exp $ */
+/* $NetBSD: pmap.h,v 1.29 2019/12/30 16:05:15 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -198,10 +198,11 @@
 #define L1_ROUND_BLOCK(x)      L1_TRUNC_BLOCK((x) + L1_SIZE - 1)
 #define L2_TRUNC_BLOCK(x)      ((x) & L2_FRAME)
 #define L2_ROUND_BLOCK(x)      L2_TRUNC_BLOCK((x) + L2_SIZE - 1)
+#define L3_TRUNC_BLOCK(x)      ((x) & L3_FRAME)
+#define L3_ROUND_BLOCK(x)      L3_TRUNC_BLOCK((x) + L3_SIZE - 1)
 
-/* devmap use L2 blocks. (2Mbyte) */
-#define DEVMAP_TRUNC_ADDR(x)   L2_TRUNC_BLOCK((x))
-#define DEVMAP_ROUND_SIZE(x)   L2_ROUND_BLOCK((x))
+#define DEVMAP_TRUNC_ADDR(x)   L3_TRUNC_BLOCK((x))
+#define DEVMAP_ROUND_SIZE(x)   L3_ROUND_BLOCK((x))
 
 #define        DEVMAP_ENTRY(va, pa, sz)                        \
        {                                               \



Home | Main Index | Thread Index | Old Index