Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Uncomment "clear SOFT_INT bits" lines in ...



details:   https://anonhg.NetBSD.org/src/rev/511a121ec075
branches:  trunk
changeset: 762680:511a121ec075
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Feb 25 14:57:45 2011 +0000

description:
Uncomment "clear SOFT_INT bits" lines in _splsw_spl0().
This makes interrupts on cobalt (and probably other Rm5200 machines) work,
and no bad side effect seen on R4400 ews4800mips.

Cobalt GENERIC kernel on RaQ still panics right after mountroot() though:
---
 :
atabus1 at viaide0 channel 1
VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x02) at pci0 dev 9 function 2 not configured
wd0 at atabus0 drive 0
wd0: <QUANTUM FIREBALLlct15 15>
wd0: 14324 MB, 29104 cyl, 16 head, 63 sec, 512 bytes/sect x 29336832 sectors
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
pid 1(init): ABI set to O32 (e_flags=0x1007)
pid 4(sh): trap: cpu0, address error (load or I-fetch) in kernel mode
status=0x8003, cause=0x10, epc=0x801430a0, vaddr=0x8001
tf=0xc6471a88 ksp=0xc6471b28 ra=0x801f0c90 ppl=0x801f0c24
kernel: address error (load or I-fetch) trap
Stopped in pid 4.1 (sh) at      netbsd:mutex_abort:     lw      v1,0(a0)
db> tr
0xc6471b28: mutex_abort+0 (8001,80380530,803cbb10,803ff840) ra 801f0c90 sz 0
0xc6471b28: mips_pmap_map_poolpage+90 (8001,80380530,803cbb10,803ff840) ra 80276788 sz 40
0xc6471b50: pool_grow+4c (8001,80380530,803cbb10,803ff840) ra 80276b64 sz 48
0xc6471b80: pool_catchup+34 (8001,80380530,803cbb10,803ff840) ra 80276418 sz 24
0xc6471b98: pool_get+50c (8001,80380530,803cbb10,803ff840) ra 801f11b8 sz 64
0xc6471bd8: pmap_enter_pv+e8 (8001,80380530,803cbb10,803ff840) ra 801f3054 sz 48
0xc6471c08: pmap_enter+138 (8001,80380530,803cbb10,803ff840) ra 802fd528 sz 64
0xc6471c48: uvm_fault_lower+24c (8001,80380530,803cbb10,803ff840) ra 802fec50 sz 96
0xc6471ca8: uvm_fault_internal+72c (83ed5b40,80380530,1,0) ra 802b5b08 sz 272
0xc6471db8: trap+8d0 (10,8,1,408fb8) ra 8018f22c sz 400
0xc6471f48: mips3_user_gen_exception+cc (10,8,1,408fb8) ra 0 sz 0
User-level: pid 4.1
db>

diffstat:

 sys/arch/mips/mips/spl.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 2eb3d9fd210c -r 511a121ec075 sys/arch/mips/mips/spl.S
--- a/sys/arch/mips/mips/spl.S  Fri Feb 25 14:32:38 2011 +0000
+++ b/sys/arch/mips/mips/spl.S  Fri Feb 25 14:57:45 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spl.S,v 1.2 2011/02/20 07:45:48 matt Exp $     */
+/*     $NetBSD: spl.S,v 1.3 2011/02/25 14:57:45 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #include <mips/asm.h>
 #include <mips/cpuregs.h>
 
-RCSID("$NetBSD: spl.S,v 1.2 2011/02/20 07:45:48 matt Exp $")
+RCSID("$NetBSD: spl.S,v 1.3 2011/02/25 14:57:45 tsutsui Exp $")
 
 #include "assym.h"
 
@@ -179,8 +179,8 @@
        INT_L   v1, _C_LABEL(ipl_sr_map) + 4*IPL_NONE
        PTR_L   a3, L_CPU(MIPS_CURLWP)
        xor     v1, MIPS_INT_MASK | MIPS_SR_INT_IE # invert and or in IE
-       #mtc0   zero, MIPS_COP_0_CAUSE          # clear SOFT_INT bits
-       #COP0_SYNC
+       mtc0    zero, MIPS_COP_0_CAUSE          # clear SOFT_INT bits
+       COP0_SYNC
        mfc0    a0, MIPS_COP_0_STATUS
        NOP_L                                   # load delay
        or      v0, a0, v1



Home | Main Index | Thread Index | Old Index