Don't pushpop in long mode without stack (#611)

This commit is contained in:
tkchia 2022-09-12 10:50:32 +08:00 committed by GitHub
parent 9b89a7c51d
commit 569c031934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1425,8 +1425,8 @@ golong: cli
// Long mode is long. // Long mode is long.
.code64 .code64
long: push $GDT_LONG_DATA long: xor %eax,%eax
pop %rax mov $GDT_LONG_DATA,%al
mov %eax,%ds mov %eax,%ds
mov %eax,%ss mov %eax,%ss
mov %eax,%es mov %eax,%es