#include <stddef.h>
#include <stdint.h>
#include "./arch/x86/idt.h"
#include <terminal.h>
#include <kabort.h>
#include <kassert.h>

void kernel_main()
{
    term_initialize();
    idt_install();

    kputs("Interrupt?");
    int i = 0;
    int b = 128;
    int d = 1;

    d = b / i;

    while (1)
        ;
}

#include <stddef.h>
#include <stdint.h>
#include "./arch/x86/gdt.h"
#include "./arch/x86/idt.h"
#include <terminal.h>
#include <kabort.h>
#include <kassert.h>

void kernel_main()
{
    term_initialize();
    gdt_install();
    idt_install();

    kputs("Hello kernel!");

    while (1) {
    };
}

Install GDT and remove division by 0
Install GDT and remove division by 0
