Kernel thread stack usage
Alexander Motin
mav at FreeBSD.org
Sun Nov 11 12:43:52 PST 2007
Marcel Moolenaar wrote:
> 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.
Hmm, interesting. And which one is pointed by td_kstack there? Or they
are using same segment but from opposite sides?
> The code suggested will not be meaningful on ia64.
Why? If variable stack growing down and it's segment is pointed by
td_kstack then where is the problem? Or you mean that system will die
earlier when those two stacks in same segment will reach each other?
--
Alexander Motin
More information about the freebsd-arch
mailing list