From 42dc81ee3f9636e8ed27a8bb5a6163254b0cf8a6 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 8 Sep 2015 08:34:18 +0200 Subject: [PATCH] enable alignment checking --- 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 26d52601f..14de8a41f 100644 --- a/hermit/arch/x86/include/asm/tasks.h +++ b/hermit/arch/x86/include/asm/tasks.h @@ -71,7 +71,7 @@ int create_default_frame(task_t* task, entry_point_t ep, void* arg); static inline int jump_to_user_code(size_t ep, size_t stack) { // Create a pseudo interrupt on the stack and return to user function - asm volatile ("push %0; push %1; push $0x1202; push %2; push %3; iretq" :: "r"(0x33ULL), "r"(stack), "r"(0x2bULL), "r"(ep) : "memory"); + asm volatile ("push %0; push %1; push $0x41202; push %2; push %3; iretq" :: "r"(0x33ULL), "r"(stack), "r"(0x2bULL), "r"(ep) : "memory"); return 0; }