sparc64/93226: DEBUG_LOCKS (really stack_save()) causes panics
jhb at freebsd.org
Mon Feb 13 11:48:45 PST 2006
On Monday 13 February 2006 13:36, Antoine Brodin wrote:
> John Baldwin <jhb at freebsd.org> wrote:
> > If there are kernel functions before the assembly ones (dependent on link
> > order) then this would wrongly bail when it hit those. I think you need
> > to do what the ddb stack tracing code does which is to lookup the symbol
> > name and do a bcmp() on the first 4 chars to recognize trapframes.
> I ran objdump -d on a sparc64 kernel and it looks like tl0_* and tl1_*
> are always at the beginning of the code, there is some kind of magic.
magic aside, it would be best to use the same algorithm in both places IMO.
It would also be a lot more intuitive to other folks later on.
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-sparc64