From 104d588f0368a721a7e7fc1e99ce82258e947a52 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 15 Jul 2015 10:08:06 +0200 Subject: [PATCH] now, every user task starts with the same rflags (0x1002) --- hermit/arch/x86/include/asm/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/arch/x86/include/asm/tasks.h b/hermit/arch/x86/include/asm/tasks.h index 5681c3dbd..e834e69e6 100644 --- a/hermit/arch/x86/include/asm/tasks.h +++ b/hermit/arch/x86/include/asm/tasks.h @@ -75,7 +75,7 @@ static inline int jump_to_user_code(size_t ep, size_t stack) // x86_64 doesn't longer use segment registers //asm volatile ("mov %0, %%ds; mov %0, %%es" :: "r"(ds)); - asm volatile ("push %0; push %1; pushfq; push %2; push %3; iretq" :: "r"(ds), "r"(stack), "r"(cs), "r"(ep)); + asm volatile ("push %0; push %1; push $0x1002; push %2; push %3; iretq" :: "r"(ds), "r"(stack), "r"(cs), "r"(ep)); return 0; }