Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Now we have Sysseg_pa value so no need to calculate...
details: https://anonhg.NetBSD.org/src/rev/eb16186cb21e
branches: trunk
changeset: 749951:eb16186cb21e
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Dec 13 11:24:02 2009 +0000
description:
Now we have Sysseg_pa value so no need to calculate it from KVA Sysseg.
Tested on hp300.
XXX: mac68k seems to have a different VA vs PA mechanism so I leave it for now.
diffstat:
sys/arch/cesfic/cesfic/locore.s | 9 ++++-----
sys/arch/hp300/hp300/locore.s | 7 +++----
sys/arch/luna68k/luna68k/locore.s | 7 +++----
sys/arch/mvme68k/mvme68k/locore.s | 7 +++----
sys/arch/news68k/news68k/locore.s | 9 ++++-----
sys/arch/next68k/next68k/locore.s | 7 +++----
sys/arch/x68k/x68k/locore.s | 7 +++----
7 files changed, 23 insertions(+), 30 deletions(-)
diffs (165 lines):
diff -r f591cd754369 -r eb16186cb21e sys/arch/cesfic/cesfic/locore.s
--- a/sys/arch/cesfic/cesfic/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/cesfic/cesfic/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.20 2009/12/11 18:28:35 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.21 2009/12/13 11:24:02 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -245,7 +245,7 @@
RELOC(physmem, %a0)
movl %d1,%a0@ | and physmem
/* configure kernel and lwp0 VA space so we can get going */
- .globl _Sysseg, _pmap_bootstrap, _avail_start
+ .globl _Sysseg_pa, _pmap_bootstrap, _avail_start
#if NKSYMS || defined(DDB) || defined(LKM)
RELOC(esym,%a0) | end of static kernel test/data/syms
movl %a0@,%d5
@@ -267,9 +267,8 @@
/*
* Prepare to enable MMU.
*/
- RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA
+ RELOC(Sysseg_pa, %a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
subl #KERNBASE, %d1
RELOC(mmutype, %a0)
diff -r f591cd754369 -r eb16186cb21e sys/arch/hp300/hp300/locore.s
--- a/sys/arch/hp300/hp300/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/hp300/hp300/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.150 2009/12/12 16:37:22 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.151 2009/12/13 11:24:02 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -453,9 +453,8 @@
*
* Is this all really necessary, or am I paranoid??
*/
- RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA
+ RELOC(Sysseg_pa, %a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
RELOC(mmutype, %a0)
tstl %a0@ | HP MMU?
jeq Lhpmmu2 | yes, skip
diff -r f591cd754369 -r eb16186cb21e sys/arch/luna68k/luna68k/locore.s
--- a/sys/arch/luna68k/luna68k/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/luna68k/luna68k/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.32 2009/12/11 18:28:35 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.33 2009/12/13 11:24:02 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -267,9 +267,8 @@
* Enable the MMU.
* Since the kernel is mapped logical == physical, we just turn it on.
*/
- RELOC(Sysseg,%a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA (%a5 == 0, indeed)
+ RELOC(Sysseg_pa,%a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
#if defined(M68040)
RELOC(mmutype,%a0)
cmpl #MMU_68040,%a0@ | 68040?
diff -r f591cd754369 -r eb16186cb21e sys/arch/mvme68k/mvme68k/locore.s
--- a/sys/arch/mvme68k/mvme68k/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/mvme68k/mvme68k/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.103 2009/12/11 18:28:35 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.104 2009/12/13 11:24:03 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -610,9 +610,8 @@
* Enable the MMU.
* Since the kernel is mapped logical == physical, we just turn it on.
*/
- RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA
+ RELOC(Sysseg_pa, %a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
RELOC(mmutype, %a0)
cmpl #MMU_68040,%a0@ | 68040?
jne Lmotommu1 | no, skip
diff -r f591cd754369 -r eb16186cb21e sys/arch/news68k/news68k/locore.s
--- a/sys/arch/news68k/news68k/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/news68k/news68k/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.51 2009/12/12 09:54:42 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.52 2009/12/13 11:24:03 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -365,7 +365,7 @@
/*
* configure kernel and lwp0 VA space so we can get going
*/
- .globl _Sysseg, _pmap_bootstrap, _avail_start
+ .globl _Sysseg_pa, _pmap_bootstrap, _avail_start
#if NKSYMS || defined(DDB) || defined(LKM)
RELOC(esym,%a0) | end of static kernel test/data/syms
@@ -398,9 +398,8 @@
movl #_C_LABEL(vectab),%d0 | get our VBR address
movc %d0,%vbr
- RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA
+ RELOC(Sysseg_pa, %a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
RELOC(mmutype, %a0)
cmpl #MMU_68040,%a0@ | 68040?
jne Lmotommu1 | no, skip
diff -r f591cd754369 -r eb16186cb21e sys/arch/next68k/next68k/locore.s
--- a/sys/arch/next68k/next68k/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/next68k/next68k/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.53 2009/12/11 18:28:35 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.54 2009/12/13 11:24:03 tsutsui Exp $ */
/*
* Copyright (c) 1998 Darrin B. Jewell
@@ -330,9 +330,8 @@
*
* Is this all really necessary, or am I paranoid??
*/
- RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA
+ RELOC(Sysseg_pa, %a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
RELOC(mmutype, %a0)
#if defined(ENABLE_HP_CODE)
diff -r f591cd754369 -r eb16186cb21e sys/arch/x68k/x68k/locore.s
--- a/sys/arch/x68k/x68k/locore.s Sun Dec 13 11:10:50 2009 +0000
+++ b/sys/arch/x68k/x68k/locore.s Sun Dec 13 11:24:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.95 2009/12/11 18:28:35 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.96 2009/12/13 11:24:04 tsutsui Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -863,9 +863,8 @@
*
* Is this all really necessary, or am I paranoid??
*/
- RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,%d1 | read value (a KVA)
- addl %a5,%d1 | convert to PA
+ RELOC(Sysseg_pa, %a0) | system segment table addr
+ movl %a0@,%d1 | read value (a PA)
RELOC(mmutype, %a0)
cmpl #MMU_68040,%a0@ | 68040?
jne Lmotommu1 | no, skip
Home |
Main Index |
Thread Index |
Old Index