1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

enable alignment checking

This commit is contained in:
Stefan Lankes 2015-09-08 08:34:18 +02:00
parent 86df21b3f0
commit 42dc81ee3f

View file

@ -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;
}