bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/6 gnumach] i386/cpuboot: Dont use CPU_NUMBER_NO_STACK() early


From: Damien Zammit
Subject: [PATCH 2/6 gnumach] i386/cpuboot: Dont use CPU_NUMBER_NO_STACK() early
Date: Mon, 09 Dec 2024 12:17:30 +0000

Since we just set up the gs segment, we can use
CPU_NUMBER instead of CPU_NUMBER_NO_STACK.
---
 i386/i386/cpuboot.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S
index 9ac86845..09855864 100644
--- a/i386/i386/cpuboot.S
+++ b/i386/i386/cpuboot.S
@@ -205,7 +205,7 @@ apboot_jmp_offset:
        wrmsr
 
        /* Load int_stack_top[cpu] -> esp */
-       CPU_NUMBER_NO_STACK(%edx)
+       CPU_NUMBER(%edx)
        movl    CX(EXT(int_stack_top), %edx), %esp
 
        /* Ensure stack alignment */
-- 
2.45.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]