x86: move apic variables to apic.c