2 .globl smp_ap_boot_code_start
3 .globl smp_ap_boot_code_end
4 .global smm_relocation_start
5 .global smm_relocation_end
9 #define PM_IO_BASE 0xb000
12 /* clear bss section */
14 mov $__bss_start, %edi
21 #define CPU_COUNT 0xf000
24 smp_ap_boot_code_start:
33 /* code to relocate SMBASE to 0xa0000 */
35 mov $0x38000 + 0x7efc, %ebx
36 mov (%ebx), %al /* revision ID to see if x86_64 or x86 */
39 mov $0x38000 + 0x7ef8, %ebx
42 mov $0x38000 + 0x7f00, %ebx
49 /* minimal SMM code to enable or disable ACPI */
57 mov $PM_IO_BASE + 0x04, %dx /* PMCNTRL */
69 mov $PM_IO_BASE + 0x04, %dx /* PMCNTRL */