L_SavedCs: .space 2\r
L_64BitCode:\r
.byte 0x90\r
- .byte 0x67,0xbc # mov esp, imm32\r
-L_SavedSp: .space 4 # restore stack\r
+ .byte 0x48,0xbc # mov rsp, imm64\r
+L_SavedSp: .space 8 # restore stack\r
nop\r
ret\r
\r
pushq %r8\r
movl %cs, %r8d\r
movw %r8w, (L_SavedCs - L_SavedCr4)(%rcx)\r
- movl %esp, (L_SavedSp - L_SavedCr4)(%rcx)\r
+ movq %rsp, (L_SavedSp - L_SavedCr4)(%rcx)\r
.byte 0xff, 0x69 # jmp (_EntryPoint - L_SavedCr4)(%rcx)\r
.set Ltemp1, _EntryPoint - L_SavedCr4\r
.byte Ltemp1\r