Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
cli
.hang:
hlt ; halt machine should kernel return
jmp .hang
If I understand correctly, the only way for the CPU to get out of the halt state is if there is an interrupt. But since we've disabled interrupts that can't happen. So is the above code the same as moving the hlt outside the loop?