The first step for porting the kernel to the new architecture is to initiate long mode, setup pagingation, and local interruptions.