kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
e5b55a6ba5
commit
a252a3f8e9
58 changed files with 1270 additions and 505 deletions
68
amd64/trap.S
Normal file
68
amd64/trap.S
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
.intel_syntax noprefix
|
||||
|
||||
.macro exception nr
|
||||
.global _exception_\nr
|
||||
_exception_\nr:
|
||||
mov rdi, \nr
|
||||
call exception_handler
|
||||
iretq
|
||||
.endm
|
||||
|
||||
.macro irq nr
|
||||
.global _irq_\nr
|
||||
_irq_\nr:
|
||||
mov rdi, \nr
|
||||
call irq_handler
|
||||
iretq
|
||||
.endm
|
||||
|
||||
exception 0x00
|
||||
exception 0x01
|
||||
exception 0x02
|
||||
exception 0x03
|
||||
exception 0x04
|
||||
exception 0x05
|
||||
exception 0x06
|
||||
exception 0x07
|
||||
exception 0x08
|
||||
exception 0x09
|
||||
exception 0x0A
|
||||
exception 0x0B
|
||||
exception 0x0C
|
||||
exception 0x0D
|
||||
exception 0x0E
|
||||
exception 0x0F
|
||||
exception 0x10
|
||||
exception 0x11
|
||||
exception 0x12
|
||||
exception 0x13
|
||||
exception 0x14
|
||||
exception 0x15
|
||||
exception 0x16
|
||||
exception 0x17
|
||||
exception 0x18
|
||||
exception 0x19
|
||||
exception 0x1A
|
||||
exception 0x1B
|
||||
exception 0x1C
|
||||
exception 0x1D
|
||||
exception 0x1E
|
||||
exception 0x1F
|
||||
|
||||
irq 0x00
|
||||
irq 0x01
|
||||
irq 0x02
|
||||
irq 0x03
|
||||
irq 0x04
|
||||
irq 0x05
|
||||
irq 0x06
|
||||
irq 0x07
|
||||
irq 0x08
|
||||
irq 0x09
|
||||
irq 0x0A
|
||||
irq 0x0B
|
||||
irq 0x0C
|
||||
irq 0x0D
|
||||
irq 0x0E
|
||||
irq 0x0F
|
||||
Loading…
Reference in a new issue