openbsd: adjust page guard address

some commits in OpenBSD base have corrected a problem of stack position.
Now, we can adjust more accurately the page guard in rust.
This commit is contained in:
Sébastien Marie 2015-02-23 19:58:48 +01:00
parent 8a69110c3b
commit 28362d542d

View File

@ -164,7 +164,7 @@ pub mod guard {
if pthread_main_np() == 1 {
// main thread
current_stack.ss_sp as uint - current_stack.ss_size as uint + 3 * PAGE_SIZE as uint
current_stack.ss_sp as uint - current_stack.ss_size as uint + PAGE_SIZE as uint
} else {
// new thread