Module Name: src
Committed By: tsutsui
Date: Sun Oct 9 08:51:56 UTC 2011
Modified Files:
src/sys/arch/x68k/x68k: locore.s
Log Message:
Make NetBSD/x68k kernel work with 8KB/page (i.e. PGSHIFT==13) settings.
It's quite interesting to check ATC miss rate with both settings on XM6i,
as noted in XM6i presentation by isaki@ at OSC 2011 Hiroshima.
To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/x68k/x68k/locore.s
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x68k/x68k/locore.s
diff -u src/sys/arch/x68k/x68k/locore.s:1.103 src/sys/arch/x68k/x68k/locore.s:1.104
--- src/sys/arch/x68k/x68k/locore.s:1.103 Sat May 14 10:49:06 2011
+++ src/sys/arch/x68k/x68k/locore.s Sun Oct 9 08:51:56 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.103 2011/05/14 10:49:06 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.104 2011/10/09 08:51:56 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -870,7 +870,11 @@ Ljupiterdone:
.long 0x4e7b0007 | movc d0,dtt1
.word 0xf4d8 | cinva bc
.word 0xf518 | pflusha
+#if PGSHIFT == 13
+ movl #0xc000,%d0
+#else
movl #0x8000,%d0
+#endif
.long 0x4e7b0003 | movc d0,tc
#ifdef M68060
RELOC(cputype, %a0)
@@ -887,7 +891,11 @@ Lnot060cache:
movc %d0,%cacr | turn on both caches
jmp Lenab1
Lmotommu2:
+#if PGSHIFT == 13
+ movl #0x82d08b00,%sp@- | value to load TC with
+#else
movl #0x82c0aa00,%sp@- | value to load TC with
+#endif
pmove %sp@,%tc | load it
/*