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:
parent
8a69110c3b
commit
28362d542d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user