matos/arch/x86/interrupt.h
2021-10-08 16:42:32 +02:00

15 lines
298 B
C

#pragma once
#include "stdarg.h"
#include "cpu_context.h"
// c.f. intel software-developer-vol-1 6.4.1
struct interrupt_frame {
/* Stacked by the CPU */
uint32_t eip;
uint32_t cs;
uint32_t eflags;
} __attribute__((packed));
// IRQ
void pit_handler(struct interrupt_frame *frame);