Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Feb 2002 16:53:59 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        Daniel Eischen <eischen@pcnet1.pcnet.com>, arch@FreeBSD.ORG
Subject:   Re: FWIW... maybe this way already?
Message-ID:  <3C5B38A7.87322161@mindspring.com>
References:  <Pine.BSF.4.21.0202010959220.67160-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:
> 
> this is what mach threads did..
> nowm the question is: how do you know where the beginning of the stack is?

Hah!  I _knew_ it tickled a memory!  But to answer...

User space register pointing to the stack for each system
call, before the switch to the kernel stack.

You can either maintain a list of stack bases, as instanced,
passed into the kernel, in which case when you later get a
thread entry, you can bsearch them, or you can search each
time backwards to the unmapped page, with a guarantee of a
page boundary start (this would be slow enough that it would
outweight the advantages of doing this, IMO).

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C5B38A7.87322161>