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

enable interrupts for user-space applications

This commit is contained in:
Stefan Lankes 2015-07-17 09:41:25 +02:00
parent cce69cfe44
commit 44739428c4

View file

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