How does the CPU knows which interrupt service routine to run against a hardware interrupt?
For example, a key on a keyboard is press causing a hardware interrupt to be generated to the CPU, the CPU sends an acknowledgement to the interrupt controller. At the stage of the interrupt process, how does the CPU knows which interrupt service routine to run based on a key press on the keyboard? 来源: https://stackoverflow.com/questions/48110019/how-does-the-cpu-knows-which-interrupt-service-routine-to-run-against-a-hardware