Hello all-
I'm new to (Free)BSD programming, so this may be a dumb question.
Is there a limit to the stack space available to functions
within the kernel? Occasionally I'll see a * bug where as
soon as a function is entered, the kernel double faults.
If I then reduce the amount of stack space required by the
function (by allocating some variables on the heap, or
breaking the function into subfunctions), then the problem
goes away.
It's possible it's an obscure GCC bug, but that seems pretty
unlikely. On the other hand, I didn't think there was a limit
to stack size in the kernel. Or is there something like a
4K limit per function, or some such?
Any and all help is appreciated.
Thanks-
-Thomas