diff --git a/entryother.S b/entryother.S index 3e502f3..dd33680 100644 --- a/entryother.S +++ b/entryother.S @@ -39,7 +39,7 @@ start: # Complete the transition to 32-bit protected mode by using a long jmp # to reload %cs and %eip. The segment descriptors are set up with no # translation, so that the mapping is still the identity mapping. - ljmpl $(KCSEG32), $start32 + ljmpl $(SEG_KCODE32), $start32 .code32 start32: diff --git a/usys.S b/usys.S index e62f3d9..69935e7 100644 --- a/usys.S +++ b/usys.S @@ -4,7 +4,7 @@ #define SYSCALL(name) \ .globl name; \ name: \ - movl $SYS_ ## name, %eax; \ + mov $SYS_ ## name, %rax; \ syscall; \ ret