From 44739428c45ea526d041da6c179d2ac48fc6dd84 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Fri, 17 Jul 2015 09:41:25 +0200 Subject: [PATCH] enable interrupts for user-space applications --- 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 e834e69e6..db8c2d5d7 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; push $0x1002; push %2; push %3; iretq" :: "r"(ds), "r"(stack), "r"(cs), "r"(ep)); + asm volatile ("push %0; push %1; push $0x1202; push %2; push %3; iretq" :: "r"(ds), "r"(stack), "r"(cs), "r"(ep)); return 0; }