.. | .. |
---|
19 | 19 | */ |
---|
20 | 20 | .section ".text32", "ax" |
---|
21 | 21 | .code32 |
---|
22 | | -ENTRY(machine_real_restart_asm) |
---|
| 22 | +SYM_CODE_START(machine_real_restart_asm) |
---|
23 | 23 | |
---|
24 | 24 | #ifdef CONFIG_X86_64 |
---|
25 | 25 | /* Switch to trampoline GDT as it is guaranteed < 4 GiB */ |
---|
.. | .. |
---|
33 | 33 | movl %eax, %cr0 |
---|
34 | 34 | ljmpl $__KERNEL32_CS, $pa_machine_real_restart_paging_off |
---|
35 | 35 | |
---|
36 | | -GLOBAL(machine_real_restart_paging_off) |
---|
| 36 | +SYM_INNER_LABEL(machine_real_restart_paging_off, SYM_L_GLOBAL) |
---|
37 | 37 | xorl %eax, %eax |
---|
38 | 38 | xorl %edx, %edx |
---|
39 | 39 | movl $MSR_EFER, %ecx |
---|
.. | .. |
---|
63 | 63 | movl %ecx, %gs |
---|
64 | 64 | movl %ecx, %ss |
---|
65 | 65 | ljmpw $8, $1f |
---|
| 66 | +SYM_CODE_END(machine_real_restart_asm) |
---|
66 | 67 | |
---|
67 | 68 | /* |
---|
68 | 69 | * This is 16-bit protected mode code to disable paging and the cache, |
---|
.. | .. |
---|
127 | 128 | .section ".rodata", "a" |
---|
128 | 129 | |
---|
129 | 130 | .balign 16 |
---|
130 | | -GLOBAL(machine_real_restart_idt) |
---|
| 131 | +SYM_DATA_START(machine_real_restart_idt) |
---|
131 | 132 | .word 0xffff /* Length - real mode default value */ |
---|
132 | 133 | .long 0 /* Base - real mode default value */ |
---|
133 | | -END(machine_real_restart_idt) |
---|
| 134 | +SYM_DATA_END(machine_real_restart_idt) |
---|
134 | 135 | |
---|
135 | 136 | .balign 16 |
---|
136 | | -GLOBAL(machine_real_restart_gdt) |
---|
| 137 | +SYM_DATA_START(machine_real_restart_gdt) |
---|
137 | 138 | /* Self-pointer */ |
---|
138 | 139 | .word 0xffff /* Length - real mode default value */ |
---|
139 | 140 | .long pa_machine_real_restart_gdt |
---|
.. | .. |
---|
153 | 154 | * semantics we don't have to reload the segments once CR0.PE = 0. |
---|
154 | 155 | */ |
---|
155 | 156 | .quad GDT_ENTRY(0x0093, 0x100, 0xffff) |
---|
156 | | -END(machine_real_restart_gdt) |
---|
| 157 | +SYM_DATA_END(machine_real_restart_gdt) |
---|