hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/realmode/rm/trampoline_32.S
....@@ -29,7 +29,7 @@
2929 .code16
3030
3131 .balign PAGE_SIZE
32
-ENTRY(trampoline_start)
32
+SYM_CODE_START(trampoline_start)
3333 wbinvd # Needed for NUMA-Q should be harmless for others
3434
3535 LJMPW_RM(1f)
....@@ -40,9 +40,6 @@
4040 cli # We should be safe anyway
4141
4242 movl tr_start, %eax # where we need to go
43
-
44
- movl $0xA5A5A5A5, trampoline_status
45
- # write marker for master knows we're running
4643
4744 /*
4845 * GDT tables in non default location kernel can be beyond 16MB and
....@@ -57,18 +54,20 @@
5754 lmsw %dx # into protected mode
5855
5956 ljmpl $__BOOT_CS, $pa_startup_32
57
+SYM_CODE_END(trampoline_start)
6058
6159 .section ".text32","ax"
6260 .code32
63
-ENTRY(startup_32) # note: also used from wakeup_asm.S
61
+SYM_CODE_START(startup_32) # note: also used from wakeup_asm.S
6462 jmp *%eax
63
+SYM_CODE_END(startup_32)
6564
6665 .bss
6766 .balign 8
68
-GLOBAL(trampoline_header)
69
- tr_start: .space 4
70
- tr_gdt_pad: .space 2
71
- tr_gdt: .space 6
72
-END(trampoline_header)
67
+SYM_DATA_START(trampoline_header)
68
+ SYM_DATA_LOCAL(tr_start, .space 4)
69
+ SYM_DATA_LOCAL(tr_gdt_pad, .space 2)
70
+ SYM_DATA_LOCAL(tr_gdt, .space 6)
71
+SYM_DATA_END(trampoline_header)
7372
7473 #include "trampoline_common.S"