kernel stacks [eas: Re: G5 Bridge-mode MMU]
Marcel Moolenaar
xcllnt at mac.com
Wed Apr 16 00:42:43 UTC 2008
On Apr 15, 2008, at 4:46 PM, Peter Grehan wrote:
> Hi Marcel,
>
>> the not mapping means that the CPU couldn't find the
>> translation in its TLB nor in the hash table. The exception code
>> treats
>> this as a kernel stack overflow.
>
> Are you sure it isn't a genuine stack overflow ?
Positive. The panic happens after 4KB of stack has been used.
> You may be able to tell by bumping the size of tmpstk on a non-
> kstack0 boot and see how far up it's been used.
The backtrace also shows that. From inner-most to out-most function in
the backtrace the stack pointers are roughly 4KB apart.
> The stack mappings are put into the hash table, and a panic will be
> issues if it can't be placed into the primary or secondary buckets.
Hmm, It looks like you're right. Odd...
Is it possible that the hash computation we use is not one
used by the CPU so that we end up adding PTE where the CPU
isn't looking?
I'll have to dig deeper, I guess...
--
Marcel Moolenaar
xcllnt at mac.com
More information about the freebsd-ppc
mailing list