Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/hp300 Allow NetBSD/hp300 kernel work with PGS...



details:   https://anonhg.NetBSD.org/src/rev/da5564ca4135
branches:  trunk
changeset: 749911:da5564ca4135
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 12 16:37:22 2009 +0000

description:
Allow NetBSD/hp300 kernel work with PGSHIFT==13, i.e. 8KB/page.
Tested on HP9000/382 with 68040.

XXX: 8KB/page won't work on HP MMU machines (i.e. HP320 and HP350).

diffstat:

 sys/arch/hp300/hp300/locore.s |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 20725dcc8c29 -r da5564ca4135 sys/arch/hp300/hp300/locore.s
--- a/sys/arch/hp300/hp300/locore.s     Sat Dec 12 16:12:05 2009 +0000
+++ b/sys/arch/hp300/hp300/locore.s     Sat Dec 12 16:37:22 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.149 2009/12/11 18:28:35 tsutsui Exp $     */
+/*     $NetBSD: locore.s,v 1.150 2009/12/12 16:37:22 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -523,7 +523,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
        movl    #0x80008000,%d0
        movc    %d0,%cacr               | turn on both caches
@@ -532,7 +536,11 @@
        movl    #MMU_IEN+MMU_FPE,INTIOBASE+MMUBASE+MMUCMD
                                        | enable 68881 and i-cache
        RELOC(prototc, %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
        jmp     Lenab1:l                | forced not be pc-relative
 Lhpmmu3:



Home | Main Index | Thread Index | Old Index