
This commit adds support for software vectoring in the PLIC interrupt. The interrupt table is created by the compiler, which leads to very compact code while retaining the flexibility that the interrupt API provides.
8 строки
297 Б
Go
8 строки
297 Б
Go
// +build avr cortexm
|
|
|
|
package interrupt
|
|
|
|
// Register is used to declare an interrupt. You should not normally call this
|
|
// function: it is only for telling the compiler about the mapping between an
|
|
// interrupt number and the interrupt handler name.
|
|
func Register(id int, handlerName string) int
|