From f275b56a4ef09361dbf3c425bdc22118b55ae898 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 21 Apr 2016 01:30:05 +0200 Subject: Fix xen boot * i386/i386/pcb.c (pcb_init): Make sure there is a thread before calling current_task(). --- i386/i386/pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3