Processor$register_int_handler function <nucleus/kernel.h>

The Processor$register_int_handler function registers the specified interrupt handler to an interrupt vector. The handler will be called on every occurrence of the interrupt. Each interrupt may only have one handler, so calling this function multiple times with the same vector number will overwrite the previous registered handler.

Syntax

void
Processor$register_int_handler(
	unsigned char num,
	int_handler_t addr
);

Parameters

num

The interrupt vector that the handler is for.

addr

The address of an interrupt handler function in the specified form.