Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/mac68k Allow NetBSD/mac68k kernel work with ...
details: https://anonhg.NetBSD.org/src/rev/2da64c39b48b
branches: trunk
changeset: 749889:2da64c39b48b
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Dec 12 09:55:44 2009 +0000
description:
Allow NetBSD/mac68k kernel work with PGSHIFT==13, i.e. 8KB/page.
Tested on LC630 with 68LC040.
diffstat:
sys/arch/mac68k/mac68k/locore.s | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 1b106e76e547 -r 2da64c39b48b sys/arch/mac68k/mac68k/locore.s
--- a/sys/arch/mac68k/mac68k/locore.s Sat Dec 12 09:54:42 2009 +0000
+++ b/sys/arch/mac68k/mac68k/locore.s Sat Dec 12 09:55:44 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.158 2009/12/11 18:28:35 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.159 2009/12/12 09:55:44 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1990 The Regents of the University of California.
@@ -303,7 +303,11 @@
movl %a1,%d1
.word 0xf518 | pflusha
.long 0x4e7b1807 | movc %d1,%srp
+#if PGSHIFT == 13
+ movl #0xc000,%d0
+#else
movl #0x8000,%d0
+#endif
.long 0x4e7b0003 | movc %d0,%tc ;Enable MMU
movl #CACHE40_ON,%d0
movc %d0,%cacr | turn on both caches
@@ -325,7 +329,11 @@
pmove %a0@,%srp | load the supervisor root pointer
movl #0x80000002,%a0@ | reinit upper half for CRP loads
lea _ASM_LABEL(longscratch),%a2
+#if PGSHIFT == 13
+ movl #0x82d08b00,%a2@ | value to load %TC with
+#else
movl #0x82c0aa00,%a2@ | value to load %TC with
+#endif
pmove %a2@,%tc | load it
Lloaddone:
Home |
Main Index |
Thread Index |
Old Index