From 166e07834e828ea73d30f880a5f8f3f32db889ae Mon Sep 17 00:00:00 2001 From: NotYourFox Date: Tue, 14 Jan 2025 00:42:40 +0300 Subject: [PATCH] Revert AT&T syntax in regs.S --- kernel/arch/amd64/cpu/regs.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/arch/amd64/cpu/regs.S b/kernel/arch/amd64/cpu/regs.S index f22bbda..3bae2cc 100644 --- a/kernel/arch/amd64/cpu/regs.S +++ b/kernel/arch/amd64/cpu/regs.S @@ -1,7 +1,5 @@ #define __ASSEMBLY__ -.intel_syntax noprefix - #include "arch/cpu/tables.h" .code64 @@ -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