Skip to content

Commit 7e7a0f9

Browse files
committedJan 20, 2025
fix register
1 parent 3297680 commit 7e7a0f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/runtime/sys_tamago_amd64.s

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ TEXT runtime·rt0_amd64_tamago(SB),NOSPLIT|NOFRAME|TOPFRAME,$0
1818
// create istack out of the bootstack
1919
MOVQ $runtime·g0(SB), DI
2020
LEAQ (-64*1024)(SP), AX
21-
MOVQ BX, g_stackguard0(DI)
22-
MOVQ BX, g_stackguard1(DI)
23-
MOVQ BX, (g_stack+stack_lo)(DI)
21+
MOVQ AX, g_stackguard0(DI)
22+
MOVQ AX, g_stackguard1(DI)
23+
MOVQ AX, (g_stack+stack_lo)(DI)
2424
MOVQ SP, (g_stack+stack_hi)(DI)
2525

2626
// find out information about the processor we're on

0 commit comments

Comments
 (0)