Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/luna68k/luna68k Allow NetBSD/luna68k kernel work wi...



details:   https://anonhg.NetBSD.org/src/rev/8a6b61c4e4a7
branches:  trunk
changeset: 340359:8a6b61c4e4a7
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Sep 01 13:46:14 2015 +0000

description:
Allow NetBSD/luna68k kernel work with 8kB/page (PGSHIFT==13) settings.

Tested on both LUNA (68030) and LUNA-II (68040).

diffstat:

 sys/arch/luna68k/luna68k/locore.s |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r c8f8dd3f4355 -r 8a6b61c4e4a7 sys/arch/luna68k/luna68k/locore.s
--- a/sys/arch/luna68k/luna68k/locore.s Tue Sep 01 13:45:52 2015 +0000
+++ b/sys/arch/luna68k/luna68k/locore.s Tue Sep 01 13:46:14 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.59 2014/03/22 16:52:07 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.60 2015/09/01 13:46:14 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -287,7 +287,7 @@
        RELOC(protott1,%a0)             | tt1 range 8000.0000-ffff.ffff
        .long   0xf0100c00              | pmove %a0@,mmutt1
        pflusha
-       RELOC(prototc,%a0)              | %tc: SRP,CRP,4KB page,A=10bit,B=10bit
+       RELOC(prototc,%a0)              | %tc: SRP,CRP,4KB or 8KB page
        pmove   %a0@,%tc
 /*
  * Should be running mapped from this point on
@@ -909,13 +909,21 @@
        .long   0x80000002,0    | prototype CPU root pointer
 
 GLOBAL(prototc)
+#if PGSHIFT == 13
+       .long   0x82d08b00      | %tc (SRP,CRP,8KB page, TIA/TIB=8/11bits)
+#else
        .long   0x82c0aa00      | %tc (SRP,CRP,4KB page, TIA/TIB=10/10bits)
+#endif
 GLOBAL(protott0)               | tt0 0x4000.0000-0x7fff.ffff
        .long   0x403f8543      |
 GLOBAL(protott1)               | tt1 0x8000.0000-0xffff.ffff
        .long   0x807f8543      |
 GLOBAL(proto040tc)
+#if PGSHIFT == 13
+       .long   0xc000          | %tc (8KB page)
+#else
        .long   0x8000          | %tc (4KB page)
+#endif
 GLOBAL(proto040tt0)            | tt0 0x4000.0000-0x7fff.ffff
        .long   0x403fa040      | kernel only, cache inhebit, serialized
 GLOBAL(proto040tt1)            | tt1 0x8000.0000-0xffff.ffff



Home | Main Index | Thread Index | Old Index