From 569c0319349df520bc9377c9ec36fc5ca21c6edd Mon Sep 17 00:00:00 2001 From: tkchia Date: Mon, 12 Sep 2022 10:50:32 +0800 Subject: [PATCH] Don't pushpop in long mode without stack (#611) --- ape/ape.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ape/ape.S b/ape/ape.S index 9ff9f4cd9..5934353c7 100644 --- a/ape/ape.S +++ b/ape/ape.S @@ -1425,8 +1425,8 @@ golong: cli // Long mode is long. .code64 -long: push $GDT_LONG_DATA - pop %rax +long: xor %eax,%eax + mov $GDT_LONG_DATA,%al mov %eax,%ds mov %eax,%ss mov %eax,%es