Kernel thread stack usage

Marcel Moolenaar xcllnt at mac.com
Sun Nov 11 11:49:33 PST 2007


On Nov 11, 2007, at 9:31 AM, Julian Elischer wrote:

> Also, and others may want to pipe in on this, it might go in
> machine dependent code because it is *theoretically* we could port  
> one day to a machine with an upward growing stack.

This is not theoretical at all: On ia64 there are 2 stacks. One
growing down and one growing up. The downward stack is used for
stack-based variables and the pward growing stack is used by
the processor for stacked registers.

The code suggested will not be meaningful on ia64.

-- 
Marcel Moolenaar
xcllnt at mac.com




More information about the freebsd-arch mailing list