Files
termOS/kernel/inc/arch/x86_64/idt.h
T
Karina 794dae7084 Refactor: Modular kernel structure & WIP keyboard driver
- Reorganized src/inc into arch, drivers, core, shell
- Updated CMakeLists.txt for multi-arch support
- Added basic scancode-to-ASCII mapping (US QWERTY)
- Initial KSH (Kernel Shell) skeleton
- WIP: Keyboard modifier handling
2025-12-27 22:10:24 +04:00

26 lines
438 B
C

// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2025 0xKarinyash
#ifndef IDT_H
#define IDT_H
#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();
#endif