diff options
author | marcus <marcus> | 2004-10-29 03:15:30 +0000 |
---|---|---|
committer | marcus <marcus> | 2004-10-29 03:15:30 +0000 |
commit | bd890394cc85a2b73e51d8b0e2939673221c8437 (patch) | |
tree | c6288cbbd9f4d06ea6367240f7cec05616f7087b /task/ia32-cmain.c | |
parent | eb6060f5fbfbf5f7087df76b6dc6fa8acb125c0c (diff) |
2004-10-29 Marcus Brinkmann <marcus@gnu.org>
* ia32-cmain.c (switch_thread): Correct start of small sub stack
address. Reported by Rian Hunter <hurd@thelaststop.net>.
Diffstat (limited to 'task/ia32-cmain.c')
-rw-r--r-- | task/ia32-cmain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/task/ia32-cmain.c b/task/ia32-cmain.c index 02fdcab..cdc9a31 100644 --- a/task/ia32-cmain.c +++ b/task/ia32-cmain.c @@ -110,7 +110,7 @@ switch_thread (l4_thread_id_t from, l4_thread_id_t to) /* We need a bit of extra space on the stack for l4_thread_switch. */ - __thread_set_stack_pointer (small_sub_stack); + __thread_set_stack_pointer (small_sub_stack + sizeof (small_sub_stack)); /* We can't use while(1), because then gcc will become clever and optimize away everything after thread_switch_entry. */ |