forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/x86/realmode/rm/wakeup_asm.S
....@@ -17,7 +17,7 @@
1717 .section ".data", "aw"
1818
1919 .balign 16
20
-GLOBAL(wakeup_header)
20
+SYM_DATA_START(wakeup_header)
2121 video_mode: .short 0 /* Video mode number */
2222 pmode_entry: .long 0
2323 pmode_cs: .short __KERNEL_CS
....@@ -31,13 +31,13 @@
3131 realmode_flags: .long 0
3232 real_magic: .long 0
3333 signature: .long WAKEUP_HEADER_SIGNATURE
34
-END(wakeup_header)
34
+SYM_DATA_END(wakeup_header)
3535
3636 .text
3737 .code16
3838
3939 .balign 16
40
-ENTRY(wakeup_start)
40
+SYM_CODE_START(wakeup_start)
4141 cli
4242 cld
4343
....@@ -73,7 +73,7 @@
7373 movw %ax, %fs
7474 movw %ax, %gs
7575
76
- lidtl wakeup_idt
76
+ lidtl .Lwakeup_idt
7777
7878 /* Clear the EFLAGS */
7979 pushl $0
....@@ -135,6 +135,7 @@
135135 #else
136136 jmp trampoline_start
137137 #endif
138
+SYM_CODE_END(wakeup_start)
138139
139140 bogus_real_magic:
140141 1:
....@@ -152,7 +153,7 @@
152153 */
153154
154155 .balign 16
155
-GLOBAL(wakeup_gdt)
156
+SYM_DATA_START(wakeup_gdt)
156157 .word 3*8-1 /* Self-descriptor */
157158 .long pa_wakeup_gdt
158159 .word 0
....@@ -164,15 +165,15 @@
164165 .word 0xffff /* 16-bit data segment @ real_mode_base */
165166 .long 0x93000000 + pa_real_mode_base
166167 .word 0x008f /* big real mode */
167
-END(wakeup_gdt)
168
+SYM_DATA_END(wakeup_gdt)
168169
169170 .section ".rodata","a"
170171 .balign 8
171172
172173 /* This is the standard real-mode IDT */
173174 .balign 16
174
-GLOBAL(wakeup_idt)
175
+SYM_DATA_START_LOCAL(.Lwakeup_idt)
175176 .word 0xffff /* limit */
176177 .long 0 /* address */
177178 .word 0
178
-END(wakeup_idt)
179
+SYM_DATA_END(.Lwakeup_idt)