| .. | .. |
|---|
| 29 | 29 | .code16 |
|---|
| 30 | 30 | |
|---|
| 31 | 31 | .balign PAGE_SIZE |
|---|
| 32 | | -ENTRY(trampoline_start) |
|---|
| 32 | +SYM_CODE_START(trampoline_start) |
|---|
| 33 | 33 | wbinvd # Needed for NUMA-Q should be harmless for others |
|---|
| 34 | 34 | |
|---|
| 35 | 35 | LJMPW_RM(1f) |
|---|
| .. | .. |
|---|
| 40 | 40 | cli # We should be safe anyway |
|---|
| 41 | 41 | |
|---|
| 42 | 42 | movl tr_start, %eax # where we need to go |
|---|
| 43 | | - |
|---|
| 44 | | - movl $0xA5A5A5A5, trampoline_status |
|---|
| 45 | | - # write marker for master knows we're running |
|---|
| 46 | 43 | |
|---|
| 47 | 44 | /* |
|---|
| 48 | 45 | * GDT tables in non default location kernel can be beyond 16MB and |
|---|
| .. | .. |
|---|
| 57 | 54 | lmsw %dx # into protected mode |
|---|
| 58 | 55 | |
|---|
| 59 | 56 | ljmpl $__BOOT_CS, $pa_startup_32 |
|---|
| 57 | +SYM_CODE_END(trampoline_start) |
|---|
| 60 | 58 | |
|---|
| 61 | 59 | .section ".text32","ax" |
|---|
| 62 | 60 | .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 |
|---|
| 64 | 62 | jmp *%eax |
|---|
| 63 | +SYM_CODE_END(startup_32) |
|---|
| 65 | 64 | |
|---|
| 66 | 65 | .bss |
|---|
| 67 | 66 | .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) |
|---|
| 73 | 72 | |
|---|
| 74 | 73 | #include "trampoline_common.S" |
|---|