From: Kevin O'Connor Date: Sat, 24 May 2014 13:37:57 +0000 (-0400) Subject: Don't enable thread preemption during S3 resume vga option rom execution. X-Git-Tag: rel-1.7.5.1~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e798f6c4bd3da06e848201b724e2a9a8252ceb22;p=seabios.git Don't enable thread preemption during S3 resume vga option rom execution. Signed-off-by: Kevin O'Connor (cherry picked from commit dd7527c6f51fff199285f1e1cdb3e8e16bd1781b) --- diff --git a/src/stacks.c b/src/stacks.c index 6bcb319..beccc0f 100644 --- a/src/stacks.c +++ b/src/stacks.c @@ -287,7 +287,7 @@ thread_init(void) int threads_during_optionroms(void) { - return CONFIG_THREADS && ThreadControl == 2; + return CONFIG_THREADS && ThreadControl == 2 && in_post(); } // Switch to next thread stack.