blob: 4724042259200505d0ab1c8585f99a4437d585b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include <stdint.h>
typedef struct Gate_Descriptor {
uint16_t offset_low;
uint16_t segment_selector;
uint8_t reserved;
uint8_t attrs;
uint16_t offset_high;
} __attribute__((packed)) Gate_Descriptor_t;
void make_gate(void *isr, uint8_t attrs, uint8_t vec);
void get_idtr();
|