Clean out test stuff
This commit is contained in:
parent
7843bf11d0
commit
bcf5ca86a3
@ -8,16 +8,6 @@
|
|||||||
|
|
||||||
struct kernel_boot_data_st kernel_boot_data;
|
struct kernel_boot_data_st kernel_boot_data;
|
||||||
|
|
||||||
int divide(int a, int b)
|
|
||||||
{
|
|
||||||
return a/b;
|
|
||||||
}
|
|
||||||
|
|
||||||
registers *divbyzero(registers *r) {
|
|
||||||
PANIC("DIVIDE BY ZERO!");
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
|
|
||||||
void kmain(uint64_t multiboot_magic, void *multiboot_data)
|
void kmain(uint64_t multiboot_magic, void *multiboot_data)
|
||||||
{
|
{
|
||||||
multiboot_init(multiboot_magic, P2V(multiboot_data));
|
multiboot_init(multiboot_magic, P2V(multiboot_data));
|
||||||
@ -30,11 +20,6 @@ void kmain(uint64_t multiboot_magic, void *multiboot_data)
|
|||||||
debug("Started kernel\n");
|
debug("Started kernel\n");
|
||||||
debug_info("Kernel loaded with command line: \"%s\" by <%s>\n", kernel_boot_data.commandline, kernel_boot_data.bootloader);
|
debug_info("Kernel loaded with command line: \"%s\" by <%s>\n", kernel_boot_data.commandline, kernel_boot_data.bootloader);
|
||||||
|
|
||||||
bind_interrupt(0, divbyzero);
|
|
||||||
|
|
||||||
// Force a divide by zero error
|
|
||||||
divide(5, 0);
|
|
||||||
|
|
||||||
debug_info("Boot complete\n");
|
debug_info("Boot complete\n");
|
||||||
|
|
||||||
PANIC("End of kernel function!");
|
PANIC("End of kernel function!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user