From 5151e4bf1855122cae30866c433065d7681bffa8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 6 Apr 2012 21:30:10 +0200 Subject: Check hyp_stack_switch return * i386/i386/pcb.c (switch_ktss): Check value returned by hyp_stack_switch. --- i386/i386/pcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c index 4f34391..362d990 100644 --- a/i386/i386/pcb.c +++ b/i386/i386/pcb.c @@ -157,7 +157,8 @@ void switch_ktss(pcb) #ifdef MACH_XEN /* No IO mask here */ - hyp_stack_switch(KERNEL_DS, pcb_stack_top); + if (hyp_stack_switch(KERNEL_DS, pcb_stack_top)) + panic("stack_switch"); #else /* MACH_XEN */ curr_ktss(mycpu)->tss.esp0 = pcb_stack_top; #endif /* MACH_XEN */ -- cgit v1.2.3