From b91371e4094d71bff32458a3206d170a0f881a16 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sun, 17 Feb 2008 19:14:50 +0000 Subject: [PATCH] gcc4 build fix git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23991 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_thread.cpp b/src/system/kernel/arch/x86/arch_thread.cpp index f4a14bc71e..7a033a8476 100644 --- a/src/system/kernel/arch/x86/arch_thread.cpp +++ b/src/system/kernel/arch/x86/arch_thread.cpp @@ -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 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; args[0] = stackTop;