Keyboard IRQ within an x86 kernel

You have a number of issues with your code. The main ones are discussed individually below. The HLT instruction will halt the current CPU waiting for the next interrupt. You do have interrupts enabled by this point. After the first interrupt (keystroke) the code after HLT will be executed. It will start executing whatever random … Read more