fix for undefined symbol 'panic'

Harti Brandt brandt at fokus.fraunhofer.de
Sun Jan 25 06:55:40 PST 2004


On Sun, 25 Jan 2004, Ken Smith wrote:

KS>On Sat, Jan 24, 2004 at 05:35:22PM -1000, David Cornejo wrote:
KS>> I think this is the fix.
KS>>
KS>> in directory /usr/src/sys/sparc64/include
KS>>
KS>> *** asmacros.h~ Tue Jul 15 14:08:43 2003
KS>> --- asmacros.h  Sat Jan 24 11:27:26 2004
KS>> ***************
KS>> *** 102,108 ****
KS>>   9:    .asciz  msg ; \
KS>>         .previous ; \
KS>>         SET(9b, r1, %o0) ; \
KS>> !       call    panic ; \
KS>>          nop
KS>>
KS>>   #ifdef INVARIANTS
KS>> --- 102,108 ----
KS>>   9:    .asciz  msg ; \
KS>>         .previous ; \
KS>>         SET(9b, r1, %o0) ; \
KS>> !       call    __panic ; \
KS>>          nop
KS>>
KS>>   #ifdef INVARIANTS
KS>
KS>Looks like this is correct.  Is there someone else "around" who
KS>normally takes care of this sort of thing or should I take care
KS>of it?

The fix is wrong, I think, because __panic now takes three arguments.
I wrote phk a couple of days ago, but nothing happend so far. We could do
the equivalent of __panic(str, NULL, 0), or try to get the filename and
linenumber correct. But this is where my sparc asm foo stops.

harti
-- 
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt at fokus.fraunhofer.de, harti at freebsd.org


More information about the freebsd-sparc64 mailing list