Subject: re: SMP success
To: matthew green <mrg@eterna.com.au>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-sparc
Date: 01/06/2003 15:37:12
At 18:04 Uhr +1100 6.1.2003, matthew green wrote:
>
>   kbd0 at zs1 channel 0: baud rate 1200
>   ms0 at zs1 channel 1: baud rate 1200
>   fdc0 at obio0 slot 0 offset 0x700000 level 11
>   Watchdog Reset
>   <#0>
>
>what normally comes after this point of the probe?

Normally (1.6_STABLE kernel) this looks like

kbd0 at zs1 channel 0: baud rate 1200
ms0 at zs1 channel 1: baud rate 1200
fdc0 at obio0 slot 0 offset 0x700000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
auxreg0 at obio0 slot 0 offset 0x800000

>from the <#0> prompt
>(note: that "#0" means cpu0 - if it crashed a different cpu may get to
>the prom...)

I always get the <#0> prompt.

>at this point type 'ctrace'.  that will give you a stack
>trace that you can use, eg, gdb to match up addresses with functions to
>find out where it was where it crashed.

I suppose I need 'makeoptions DEBUG="-g"' in the kernel config file?
(Kernel building right now.)

How would I proceed in gdb, since I do not get a core file? Is the kernel
linked for an absolute address?

>you can also use '.registers'
>to view the current set of global registers and 'N .window' to view the
>N'th away set of window registers (in, out's & locals).

Here's the output I get, just for completeness:

----------------------------------------------------------------------------

fdc0 at obio0 slot 0 offset 0x700000 level 11
Watchdog Reset
<#0> ok ctrace
PC: f0004050
Last leaf: jmpl  f01c14fc    from f0132fa4
     0 w  %o0-%o5: ( f08c1e80 f090a000 f024c550 f01c14fc      f00 f090a100 )

call f0132be0    from f01329e4
     1 w  %o0-%o5: ( f090a000 f024dc44 f029e400 f025f800 f024c550 f01c7da0 )

call f01329c0    from f01c8318
     2 w  %o0-%o5: ( f08c1e80 f024c550 f01c7da0        0 f024c550        0 )

call f01c8114    from f01b4fc0
     3 w  %o0-%o5: ( f08c1e80 f02264b8        0 f02264d4 f0254c00 f08bcf70 )

jmpl  f01b4f64    from f0132fa4
     4 w  %o0-%o5: ( f0930fc0 f08c1e80 f024c770 f01b4f64      f00 f08c1ed0 )

call f0132be0    from f01329e4
     5 w  %o0-%o5: ( f08c1e80 f024dc44 f029e400 f025f800 f024c770 f01dafd0 )

call f01329c0    from f01db2fc
     6 w  %o0-%o5: ( f0930fc0 f024c770 f01dafd0        0        0        0 )

jmpl  f0254eb0    from f0132fa4
     7 w  %o0-%o5: ( f01dac00 f0930fc0 f0254e78 f0254eb0 f022f800 f0254c00 )

call f0132be0    from f0132a90
     8 w  %o0-%o5: ( f0930fc0 f024dc44 f029e400 f025f800        0        0 )

call f0132a50    from f01dae60
     9 w  %o0-%o5: ( f022f918        0 f01e126c        0      f00 f08bb5c8 )

call f01dae20    from f0132278
     a w  %o0-%o5: (        0 f025f800    40000 ffffffff        0 f0251800 )

call f013223c    from f0118d6c
     b w  %o0-%o5: ( 10624dd3      54a     28db f0293000        0  4000000 )

call f0118950    from f0007594
     c w  %o0-%o5: ( f024dc00 f029e400 f0216400 f029b000 f0216400 f029f000 )

<#0> ok .registers
          %g0      %g1      %g2      %g3      %g4      %g5      %g6      %g7
            0 f024c2a8       68 f02a4c00        0 ffffffff f024aa88        0
           PC      nPC        Y      PSR      WIM      TBR
     f0004050 f0004054  1c00000 40401fe4       10 f0004050
<#0> ok 0 .window
            0        1        2        3        4        5        6        7
IN:  f090a000 f024dc44 f029e400 f025f800 f024c550 f01c7da0 f024c488 f01329e4
LOC: f090a000 f024d4ac        2        3 f024c478 f0254604 f08c1e80 f024f800
OUT: f08c1e80 f090a000 f024c550 f01c14fc      f00 f090a100 f024c410 f0132fa4
<#0> ok 1 .window
            0        1        2        3        4        5        6        7
IN:  f08c1e80 f024c550 f01c7da0        0 f024c550        0 f024c4f0 f01c8318
LOC:        2 f0230c00 f0254c00        2        0 f0002000        6        1
OUT: f090a000 f024dc44 f029e400 f025f800 f024c550 f01c7da0 f024c488 f01329e4
<#0> ok 2 .window
            0        1        2        3        4        5        6        7
IN:  f08c1e80 f02264b8        0 f02264d4 f0254c00 f08bcf70 f024c588 f01b4fc0
LOC: f024c550 f0286048 ffd60f70 f0930e80 f01c7c00 f0229400 f0229400 f0229400
OUT: f08c1e80 f024c550 f01c7da0        0 f024c550        0 f024c4f0 f01c8318
<#0> ok 3 .window
            0        1        2        3        4        5        6        7
IN:  f0930fc0 f08c1e80 f024c770 f01b4f64      f00 f08c1ed0 f024c5f0 f0132fa4
LOC: f01f67b0 f02a52ec f02a52ec f0254c00 f0254c00       80        6 f0217f18
OUT: f08c1e80 f02264b8        0 f02264d4 f0254c00 f08bcf70 f024c588 f01b4fc0
<#0> ok 4 .window
            0        1        2        3        4        5        6        7
IN:  f08c1e80 f024dc44 f029e400 f025f800 f024c770 f01dafd0 f024c668 f01329e4
LOC: f08c1e80 f024d2ec        2        4 f024c658 f0253508 f0930fc0 f024f800
OUT: f0930fc0 f08c1e80 f024c770 f01b4f64      f00 f08c1ed0 f024c5f0 f0132fa4
<#0> ok 5 .window
            0        1        2        3        4        5        6        7
IN:  f0930fc0 f024c770 f01dafd0        0        0        0 f024c6d0 f01db2fc
LOC: ffd5c360 f0230c00 f08bcfa0 f029d50c       10       10        6 f0217f18
OUT: f08c1e80 f024dc44 f029e400 f025f800 f024c770 f01dafd0 f024c668 f01329e4
<#0> ok 6 .window
            0        1        2        3        4        5        6        7
IN:  f01dac00 f0930fc0 f0254e78 f0254eb0 f022f800 f0254c00 f024c7a0 f0132fa4
LOC: f022fa20 ffd5c360 f022f990 f024c770        0        0 ffd50c10 f024c750
OUT: f0930fc0 f024c770 f01dafd0        0        0        0 f024c6d0 f01db2fc
<#0> ok

----------------------------------------------------------------------------

	hauke


--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards