Fixed some LAPIC bugs but temporary test code doesn't work