A toy operating system written in C.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct interrupt_frame {
|
|
uint64_t ip;
|
|
uint64_t cs;
|
|
uint64_t flags;
|
|
uint64_t sp;
|
|
uint64_t ss;
|
|
};
|
|
|
|
void idt_init();
|
|
|
|
void idt_set_entry(int vector, void (*handler)(struct interrupt_frame *), uint8_t flags);
|
|
|