Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include/arm32 Expose kern_vtopdiff



details:   https://anonhg.NetBSD.org/src/rev/7d8973b963ab
branches:  trunk
changeset: 834268:7d8973b963ab
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Aug 05 06:18:05 2018 +0000

description:
Expose kern_vtopdiff

diffstat:

 sys/arch/arm/include/arm32/machdep.h |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 1b6125a71387 -r 7d8973b963ab sys/arch/arm/include/arm32/machdep.h
--- a/sys/arch/arm/include/arm32/machdep.h      Sat Aug 04 21:59:28 2018 +0000
+++ b/sys/arch/arm/include/arm32/machdep.h      Sun Aug 05 06:18:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.h,v 1.24 2018/08/03 15:46:41 skrll Exp $ */
+/* $NetBSD: machdep.h,v 1.25 2018/08/05 06:18:05 skrll Exp $ */
 
 #ifndef _ARM32_MACHDEP_H_
 #define _ARM32_MACHDEP_H_
@@ -52,6 +52,8 @@
 extern volatile uint32_t arm_cpu_hatched;
 extern volatile uint32_t arm_cpu_mbox;
 extern u_int arm_cpu_max;
+extern u_long kern_vtopdiff;
+
 
 /* misc prototypes used by the many arm machdeps */
 void cortex_pmc_ccnt_init(void);
@@ -74,16 +76,12 @@
 static inline paddr_t
 aarch32_kern_vtophys(vaddr_t va)
 {
-       extern u_long kern_vtopdiff;
-
        return va - kern_vtopdiff;
 }
 
 static inline vaddr_t
 aarch32_kern_phystov(paddr_t pa)
 {
-       extern u_long kern_vtopdiff;
-
        return pa + kern_vtopdiff;
 }
 



Home | Main Index | Thread Index | Old Index