Skip to content

Commit

Permalink
Revert AT&T syntax in regs.S
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYourFox committed Jan 13, 2025
1 parent 4ea12f3 commit 166e078
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kernel/arch/amd64/cpu/regs.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#define __ASSEMBLY__

.intel_syntax noprefix

#include "arch/cpu/tables.h"

.code64
Expand All @@ -10,13 +8,13 @@

get_flags:
pushfd
mov rax, [rsp]
movq (%rsp), %rax
popfd

ret

get_rip:
mov rax, [rsp]
movq (%rsp), %rax
ret

// TODO because I'm not familiar with x86-64 conventions
Expand Down

0 comments on commit 166e078

Please sign in to comment.