FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
idt.h File Reference
#include <stdint.h>
Include dependency graph for idt.h:

Go to the source code of this file.

Classes

struct  IDTEntry
struct  IDTPointer

Macros

#define ICW1_INIT   0x10
#define ICW1_ICW4   0x01
#define ICW4_8086   0x01
#define IA32_EFER   0xC0000080
#define IA32_STAR   0xC0000081
#define IA32_LSTAR   0xC0000082
#define IA32_FMASK   0xC0000084
#define EFER_SCE   (1 << 0)

Functions

struct IDTEntry __attribute__ ((packed)) IDTEntry
 AHCI command header structure.
void syscall_entry (void)
 Located inside /interrupts/syscall-x86_64.asm.
void init_syscall ()
 Tells the CPU to use the syscall instruction.
void initIdt ()
void setIdtEntry (IDTEntry *target, uint64_t offset, uint16_t selector, uint8_t ist, uint8_t type_attributes)

Variables

uint16_t offset_1
uint16_t selector
uint8_t ist
uint8_t type_attributes
uint16_t offset_2
uint32_t offset_3
uint32_t zero
uint16_t size
uint64_t offset

Detailed Description

Author
Pradosh (prado.nosp@m.shga.nosp@m.me@gm.nosp@m.ail..nosp@m.com) & GAMINGNOOB
Version
0.1
Date
2025-02-03

Definition in file idt.h.

Macro Definition Documentation

◆ EFER_SCE

#define EFER_SCE   (1 << 0)

Definition at line 27 of file idt.h.

◆ IA32_EFER

#define IA32_EFER   0xC0000080

Definition at line 22 of file idt.h.

◆ IA32_FMASK

#define IA32_FMASK   0xC0000084

Definition at line 25 of file idt.h.

◆ IA32_LSTAR

#define IA32_LSTAR   0xC0000082

Definition at line 24 of file idt.h.

◆ IA32_STAR

#define IA32_STAR   0xC0000081

Definition at line 23 of file idt.h.

◆ ICW1_ICW4

#define ICW1_ICW4   0x01

Definition at line 19 of file idt.h.

◆ ICW1_INIT

#define ICW1_INIT   0x10

Definition at line 18 of file idt.h.

◆ ICW4_8086

#define ICW4_8086   0x01

Definition at line 20 of file idt.h.

Function Documentation

◆ __attribute__()

struct IDTEntry __attribute__ ( (packed) )

AHCI command header structure.

AHCI command table structure.

Physical Region Descriptor Table (PRDT) entry.

Represents the command header for a single AHCI port.

AHCI command header structure.

Definition at line 1 of file ahci.h.

Variable Documentation

◆ ist

uint8_t ist

Definition at line 2 of file idt.h.

◆ offset

uint64_t offset

Definition at line 1 of file idt.h.

◆ offset_1

uint16_t offset_1

Definition at line 0 of file idt.h.

◆ offset_2

uint16_t offset_2

Definition at line 4 of file idt.h.

◆ offset_3

uint32_t offset_3

Definition at line 5 of file idt.h.

◆ selector

uint16_t selector

Definition at line 1 of file idt.h.

◆ size

uint16_t size

Definition at line 0 of file idt.h.

◆ type_attributes

uint8_t type_attributes

Definition at line 3 of file idt.h.

◆ zero

uint32_t zero

Definition at line 6 of file idt.h.