Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k Make NetBSD/x68k kernel work with 8KB/pag...
details: https://anonhg.NetBSD.org/src/rev/7169fdd9a25a
branches: trunk
changeset: 770244:7169fdd9a25a
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Oct 09 08:51:56 2011 +0000
description:
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.
diffstat:
sys/arch/x68k/x68k/locore.s | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 7509c48d84a3 -r 7169fdd9a25a sys/arch/x68k/x68k/locore.s
--- a/sys/arch/x68k/x68k/locore.s Sun Oct 09 08:42:15 2011 +0000
+++ b/sys/arch/x68k/x68k/locore.s Sun Oct 09 08:51:56 2011 +0000
@@ -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 @@
.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 @@
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
/*
Home |
Main Index |
Thread Index |
Old Index