gcc4 build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23991 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -395,7 +395,7 @@ arch_thread_enter_userspace(struct thread *t, addr_t entry, void *args1,
|
|||||||
// function returns, as well as the arguments of the entry function
|
// function returns, as well as the arguments of the entry function
|
||||||
stackTop -= codeSize;
|
stackTop -= codeSize;
|
||||||
|
|
||||||
if (user_memcpy((void *)stackTop, x86_userspace_thread_exit, codeSize) < B_OK)
|
if (user_memcpy((void *)stackTop, (const void *)&x86_userspace_thread_exit, codeSize) < B_OK)
|
||||||
return B_BAD_ADDRESS;
|
return B_BAD_ADDRESS;
|
||||||
|
|
||||||
args[0] = stackTop;
|
args[0] = stackTop;
|
||||||
|
|||||||
Reference in New Issue
Block a user