NetBSD-Bugs archive

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

Re: port-sparc/54789: Sparc boot fails with "Trap 0x21 while interrupts disabled"



The following reply was made to PR port-sparc/54789; it has been noted by GNATS.

From: Andrew Doran <ad%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-sparc/54789: Sparc boot fails with "Trap 0x21 while
 interrupts disabled"
Date: Mon, 30 Dec 2019 20:31:11 +0000

 Something is messed up with trap handling.  The failure happens on the very
 first user fault.
 
 I filled sparc cpu_info with "canaries" to see if any of them were getting
 squashed, but apparently not.
 
 f000a4c0 <Ldocopy>:
 
 db> c
 init path (default /sbin/init): 
 [   4.6339925] init: copying out flags `-s' 3
 Breakpoint in pid 1.1 (init) at f000a4c0:       ld              [%o3 + 0x1c], %o
 3
 db> step
 Stopped in pid 1.1 (init) at    f000a4c4:       sethi           %hi(0xf000a400),
  %o4
 db> 
 Stopped in pid 1.1 (init) at    f000a4c8:       or              %o4, 0xec, %o4
 db> 
 Stopped in pid 1.1 (init) at    f000a4cc:       or              %g0, %o7, %g7
 db> 
 Stopped in pid 1.1 (init) at    f000a4d0:       call            f000a96c
 db> 
 Stopped in pid 1.1 (init) at    f000a4d4:       st              %o4, [%o3 + 0xc]
 
 db> 
 Stopped in pid 1.1 (init) at    f000a96c:       subcc           %o2, 0x20, %g0
 db> 
 Stopped in pid 1.1 (init) at    f000a970:       bge,a           f000a9a0
 db> 
 Stopped in pid 1.1 (init) at    f000a978:       subcc           %o2, 0x1, %o2
 db> 
 Stopped in pid 1.1 (init) at    f000a97c:       bl              f000a998
 db> 
 Stopped in pid 1.1 (init) at    f000a980:       add             %o0, 0x1, %o0
 db> 
 Stopped in pid 1.1 (init) at    f000a984:       ldsb            [%o0 - 0x1], %o4
 
 db> 
 Stopped in pid 1.1 (init) at    f000a988:       stb             %o4, [%o1 + %g0]
 
 db> 
 qemu: fatal: Trap 0x02 while interrupts disabled, Error state
 pc: f0524fb0  npc: f0524fb4
 %g0-7: 00000000 00000000 f0002000 00000000 00063061 f4dc0000 f02bbbe0 f01345f4
 %o0-7: 00000081 040000c7 f000a988 f4dc1de8 00000000 0000000e f4dc1d88 f00088d4 
 %l0-7: 040000c7 f000a988 f000a98c 00000009 f0002034 f0524fb0 f02be48c f0008534 
 %i0-7: f4dc1ea1 effffffd 00000002 f4dc0000 0000002d 0000000d f4dc1e38 f000a4d0 
 %f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
 %f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
 %f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
 %f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
 psr: 040000c7 (icc: ---- SPE: SP-) wim: 00000002
 fsr: 00000000 y: 00000000
 


Home | Main Index | Thread Index | Old Index