diff options
-rw-r--r-- | i386/i386/pcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c index dd2042d8..743108db 100644 --- a/i386/i386/pcb.c +++ b/i386/i386/pcb.c @@ -409,7 +409,7 @@ void pcb_init(task_t parent_task, thread_t thread) /* This is a new thread for the current task, make it inherit our FPU state. */ - if (parent_task == current_task()) + if (current_thread() && parent_task == current_task()) fpinherit(current_thread(), thread); } |