23 lines
403 B
C
23 lines
403 B
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Copyright (c) 2025 0xKarinyash
|
|
|
|
#pragma once
|
|
#include <types.h>
|
|
|
|
typedef struct {
|
|
u16 offset_low;
|
|
u16 selector;
|
|
u8 ist;
|
|
u8 attributes;
|
|
u16 offset_mid;
|
|
u32 offset_high;
|
|
u32 reserved;
|
|
} __attribute__((packed)) IDTEntry;
|
|
|
|
typedef struct {
|
|
u16 limit;
|
|
u64 base;
|
|
} __attribute__((packed)) IDTPtr;
|
|
|
|
void idt_init();
|