The kernel will grow the size of the userland stack if need be.
Look for vm_map_growstack().

Also just a FYI that size sounds about right for the kernel stack.  Be
very careful not to use function recursion or to many on the stack large
sized variables or else youll blow yourself into double fault land in a
hurry.

On Fri, 27 Jul 2001, Weiguang SHI wrote:

> A closer look at the code /usr/src/sys/i386/i386/locore.s astonished
> me with the fact that the kernel stack size for a process, at least
> for process 0, is 2*4096-sizeof(struct user) = 3988 bytes, less than
> even one page.
> 
> Anyone to verify this, please?
> BTW, I am looking at the 4.3-stable code.
> 
> Thanks
> Weiguang
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to