summaryrefslogtreecommitdiff
path: root/arch/x86/machine/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/machine/tcb.c')
-rw-r--r--arch/x86/machine/tcb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/machine/tcb.c b/arch/x86/machine/tcb.c
index a154be11..df1b222c 100644
--- a/arch/x86/machine/tcb.c
+++ b/arch/x86/machine/tcb.c
@@ -40,8 +40,9 @@ tcb_init(struct tcb *tcb, void *stack, void (*fn)(void))
error = pmap_thread_init(thread_from_tcb(tcb));
- if (error)
+ if (error) {
return error;
+ }
tcb->bp = 0;
tcb->sp = (unsigned long)stack + STACK_SIZE - sizeof(unsigned long);