diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 13:42:09 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 13:42:09 +0200 |
commit | 1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47 (patch) | |
tree | cd7f14d2659809286e59c929e91fe5c02c138002 /src/user/lib/tce | |
parent | f56aa2f7e4b8e6430e123f714507032a33955a09 (diff) | |
download | TCE-1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47.tar.gz TCE-1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47.zip |
Improvements. Next: initrd.
Diffstat (limited to 'src/user/lib/tce')
-rw-r--r-- | src/user/lib/tce/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/tce/syscall.c b/src/user/lib/tce/syscall.c index 4e81475..3e8d75e 100644 --- a/src/user/lib/tce/syscall.c +++ b/src/user/lib/tce/syscall.c @@ -44,8 +44,8 @@ void thread_start(void *data) { mutex_lock(&_stack_freeing_mutex); if (_stack_to_free != 0) free(_stack_to_free); _stack_to_free = tsd->stack; - asm volatile("movl %0, (_stack_freeing_mutex); int $64;" :: - "a"(SC_THREAD_EXIT), "r"(MUTEX_UNLOCKED)); + asm volatile("movl %%ebx, (_stack_freeing_mutex); int $64;" :: + "a"(SC_THREAD_EXIT), "b"(MUTEX_UNLOCKED)); } void thread_new(void (*entry)(void*), void *data) { struct thread_start_data *tsd = malloc(sizeof(struct thread_start_data)); |