matos/arch/x86/interrupt.h

15 lines
298 B
C
Raw Permalink Normal View History

2018-07-20 15:41:58 +02:00
#pragma once
#include "stdarg.h"
#include "cpu_context.h"
2018-07-20 15:41:58 +02:00
// 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;
2021-10-07 21:53:25 +02:00
} __attribute__((packed));
// IRQ
2020-04-23 00:49:09 +02:00
void pit_handler(struct interrupt_frame *frame);