Add code for LAPIC but not finished yet.