Mask CPU with 0xff as high bits can contain info. Fix vlapic detection. Tidy up.