blob: 78d736bad1ae4bc1433601f0c822d5bc6ff359d2 (
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(uint32_t offset, uint8_t attrs, uint8_t vec);
void get_idtr();
|