aboutsummaryrefslogtreecommitdiff
path: root/i686/idt.h
blob: 22dc6de9a233220cfe28d3aad3c4e1a05a6185c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <stdint.h>

struct interrupt_frame {
  uint32_t ip;
  uint32_t cs;
  uint32_t flags;
  uint32_t sp;
  uint32_t ss;
};

void abort_handler(struct interrupt_frame *frame);
void interrupt_handler(struct interrupt_frame *frame);
void interrupt_handler_e(struct interrupt_frame *frame, uint32_t error);
void syscall_handler(struct interrupt_frame *frame);

void idt_install();