diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-10-02 20:37:29 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-10-02 20:37:29 -0400 |
commit | 71eecf3849a47173247a083ff4a14c73bb509c89 (patch) | |
tree | 683b2e50194882b41d82851ee784fa2c9f34a422 /src/kernel.cpp | |
parent | 19d9a04e36e7fb96eebe89e24311408460c29a70 (diff) |
uh-oh I'm learning zig
Diffstat (limited to 'src/kernel.cpp')
-rw-r--r-- | src/kernel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel.cpp b/src/kernel.cpp index ae3f153..f881143 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -34,6 +34,8 @@ void ata_probe(auto bus, ATA::Drive drv, const char *name) } } +extern "C" void zigit(); + void kernel_main(void) { term.write("Clyne's kernel, v2024\n\n"); @@ -41,6 +43,8 @@ void kernel_main(void) if (!multiboot_initialize()) for (;;); + zigit(); + idt_register_callback(14, [](auto& regs) { term.write("Page fault! eip="); term.write(regs.eip); |