Repository navigation
Agent KB_headers_arch_x86
grisun0 edited this page Oct 27, 2026
·
12 revisions
- Doc: per-CPU control-register setup shared by the BSP (kmain)
- Layer: infrastructure
- Language: h
- Symbols:
-
cpu_enable_caches(function, line 30)static inline void cpu_enable_caches(void) -
ARCH_X86_CPU_SETUP_H(macro, line 10)#define ARCH_X86_CPU_SETUP_H
-
- Depends on:
headers/arch/x86/boot/bootdefs.h - Imported by:
kernel.c,smp.c
- Doc: Docstring: x86 port I/O hardware abstraction contract.
- Layer: utility
- Language: h
- Symbols:
-
hal_mmio_write32(function, line 123)static inline void hal_mmio_write32(volatile unsigned *addr, unsigned val) -
hal_mmio_read64(function, line 128)static inline unsigned long long hal_mmio_read64(const volatile unsigned long long *addr) -
hal_mmio_write64(function, line 133)static inline void hal_mmio_write64(volatile unsigned long long *addr, ... -
hal_mmio_read16(function, line 139)static inline unsigned short hal_mmio_read16(const volatile unsigned short *addr) -
hal_mmio_write16(function, line 144)static inline void hal_mmio_write16(volatile unsigned short *addr, ... -
hal_mmio_read8(function, line 150)static inline unsigned char hal_mmio_read8(const volatile unsigned char *addr) -
hal_mmio_write8(function, line 155)static inline void hal_mmio_write8(volatile unsigned char *addr, ... -
hal_mmio_wmb(function, line 161)static inline void hal_mmio_wmb(void) -
hal_mmio_rmb(function, line 166)static inline void hal_mmio_rmb(void) -
hal_mmio_mb(function, line 171)static inline void hal_mmio_mb(void) -
hal_outb(function, line 189)static inline void hal_outb(unsigned short port, unsigned char val) -
hal_inb(function, line 196)static inline unsigned char hal_inb(unsigned short port) -
hal_outw(function, line 202)static inline void hal_outw(unsigned short port, unsigned short val) -
hal_inw(function, line 209)static inline unsigned short hal_inw(unsigned short port) -
hal_lapic_eoi(function, line 215)static inline void hal_lapic_eoi(void) -
hal_pic_eoi(function, line 220)static inline void hal_pic_eoi(int irq) -
hal_outb(function, line 230)static inline void hal_outb(unsigned short port, unsigned char val) -
hal_inb(function, line 235)static inline unsigned char hal_inb(unsigned short port) -
hal_outw(function, line 242)static inline void hal_outw(unsigned short port, unsigned short val) -
hal_inw(function, line 247)static inline unsigned short hal_inw(unsigned short port) -
hal_lapic_eoi(function, line 254)static inline void hal_lapic_eoi(void) -
hal_pic_eoi(function, line 259)static inline void hal_pic_eoi(int irq) -
hal_io_stub_writes(variable, line 178)extern unsigned hal_io_stub_writes; -
hal_io_stub_last_port(variable, line 180)extern unsigned hal_io_stub_last_port; -
hal_io_stub_last_val(variable, line 182)extern unsigned hal_io_stub_last_val; -
hal_io_stub_lapic_eois(variable, line 184)extern unsigned hal_io_stub_lapic_eois; -
hal_io_stub_read_val(variable, line 186)extern unsigned char hal_io_stub_read_val; -
HAL_IO_H(macro, line 13)#define HAL_IO_H -
HAL_PIC1_CMD(macro, line 16)#define HAL_PIC1_CMD -
HAL_PIC1_DATA(macro, line 18)#define HAL_PIC1_DATA -
HAL_PIC2_CMD(macro, line 20)#define HAL_PIC2_CMD -
HAL_PIC2_DATA(macro, line 22)#define HAL_PIC2_DATA -
HAL_PIC_EOI(macro, line 24)#define HAL_PIC_EOI -
HAL_PIT_CMD(macro, line 27)#define HAL_PIT_CMD -
HAL_PIT_CH0(macro, line 29)#define HAL_PIT_CH0 -
HAL_PS2_STATUS(macro, line 32)#define HAL_PS2_STATUS -
HAL_PS2_DATA(macro, line 34)#define HAL_PS2_DATA -
HAL_PS2_MOUSE_OBF(macro, line 36)#define HAL_PS2_MOUSE_OBF -
HAL_PS2_IBF_EMPTY(macro, line 38)#define HAL_PS2_IBF_EMPTY -
HAL_PS2_OBF_FULL(macro, line 40)#define HAL_PS2_OBF_FULL -
HAL_PS2_CMD_WRITE_MOUSE(macro, line 42)#define HAL_PS2_CMD_WRITE_MOUSE -
HAL_PS2_CMD_ENABLE_AUX(macro, line 44)#define HAL_PS2_CMD_ENABLE_AUX -
HAL_PS2_CMD_DISABLE_AUX(macro, line 46)#define HAL_PS2_CMD_DISABLE_AUX -
HAL_PS2_CMD_ENABLE_KBD(macro, line 48)#define HAL_PS2_CMD_ENABLE_KBD -
HAL_PS2_CMD_DISABLE_KBD(macro, line 50)#define HAL_PS2_CMD_DISABLE_KBD -
HAL_PS2_CMD_READ_CONFIG(macro, line 52)#define HAL_PS2_CMD_READ_CONFIG -
HAL_PS2_CMD_WRITE_CONFIG(macro, line 54)#define HAL_PS2_CMD_WRITE_CONFIG -
HAL_PS2_CONFIG_IRQ1(macro, line 56)#define HAL_PS2_CONFIG_IRQ1 -
HAL_PS2_CONFIG_IRQ12(macro, line 58)#define HAL_PS2_CONFIG_IRQ12 -
HAL_PS2_CONFIG_DISABLE_KBD(macro, line 60)#define HAL_PS2_CONFIG_DISABLE_KBD -
HAL_PS2_CONFIG_DISABLE_AUX(macro, line 62)#define HAL_PS2_CONFIG_DISABLE_AUX -
HAL_PS2_CONFIG_TRANSLATE(macro, line 64)#define HAL_PS2_CONFIG_TRANSLATE -
HAL_MOUSE_CMD_RESET(macro, line 66)#define HAL_MOUSE_CMD_RESET -
HAL_MOUSE_CMD_SET_RATE(macro, line 68)#define HAL_MOUSE_CMD_SET_RATE -
HAL_MOUSE_CMD_GET_ID(macro, line 70)#define HAL_MOUSE_CMD_GET_ID -
HAL_MOUSE_CMD_DEFAULTS(macro, line 72)#define HAL_MOUSE_CMD_DEFAULTS -
HAL_MOUSE_CMD_ENABLE(macro, line 74)#define HAL_MOUSE_CMD_ENABLE -
HAL_MOUSE_CMD_DISABLE(macro, line 76)#define HAL_MOUSE_CMD_DISABLE -
HAL_MOUSE_RATE_KNOCK_200(macro, line 78)#define HAL_MOUSE_RATE_KNOCK_200 -
HAL_MOUSE_RATE_KNOCK_100(macro, line 80)#define HAL_MOUSE_RATE_KNOCK_100 -
HAL_MOUSE_RATE_KNOCK_80(macro, line 82)#define HAL_MOUSE_RATE_KNOCK_80 -
HAL_MOUSE_ID_INTELLI(macro, line 84)#define HAL_MOUSE_ID_INTELLI -
HAL_MOUSE_HW_TIMEOUT(macro, line 86)#define HAL_MOUSE_HW_TIMEOUT -
HAL_MOUSE_SYNC_BIT(macro, line 89)#define HAL_MOUSE_SYNC_BIT -
HAL_MOUSE_OVF_BITS(macro, line 91)#define HAL_MOUSE_OVF_BITS -
HAL_MOUSE_BUTTON_MASK(macro, line 93)#define HAL_MOUSE_BUTTON_MASK -
HAL_MOUSE_PACKET_LEN(macro, line 95)#define HAL_MOUSE_PACKET_LEN -
HAL_MOUSE_SCALE(macro, line 97)#define HAL_MOUSE_SCALE -
HAL_LAPIC_EOI_ADDR(macro, line 100)#define HAL_LAPIC_EOI_ADDR
-
- Imported by:
drivers/kbd.c,drivers/mouse.c,drivers/nvme.c,drivers/usbhid.c,drivers/xhci.c,kernel/sched.c,kernel/syscalls.c,tests/test_hal_io.c
- Doc: Model-Specific Register access for x86-64.
- Layer: utility
- Language: h
- Symbols:
-
wrmsr(function, line 8)static inline void wrmsr(unsigned msr, unsigned long val) -
rdmsr(function, line 13)static inline unsigned long rdmsr(unsigned msr) -
ARCH_X86_MSR_H(macro, line 2)#define ARCH_X86_MSR_H -
MSR_STAR(macro, line 19)#define MSR_STAR -
MSR_LSTAR(macro, line 20)#define MSR_LSTAR -
MSR_SFMASK(macro, line 21)#define MSR_SFMASK -
MSR_FSBASE(macro, line 22)#define MSR_FSBASE -
MSR_GSBASE(macro, line 23)#define MSR_GSBASE -
MSR_KERNEL_GS_BASE(macro, line 24)#define MSR_KERNEL_GS_BASE
-
- Imported by:
kernel.c,kernel/exec.c,kernel/mm/paging.c,kernel/sched.c,kernel/spawn.c,kernel/syscalls.c,smp.c
Generated offline by readmenator from commit e1e960505938. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_headers_kernel
- community_10_orphans
- community_1_progs_doomgeneric_d_englsh
- community_2_progs_src
- community_3_progs_doomgeneric_p_spec
- community_4_tools_tls_crypto
- community_5_headers_vga_fb
- community_6_progs_doomgeneric_net_defs
- community_7_headers_batch
- community_8_headers_tick
- community_9_tools_doom_pwad
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- KB_asm
- KB_boot
- KB_doomgeneric
- KB_doomgeneric_p10
- KB_doomgeneric_p11
- KB_doomgeneric_p12
- KB_doomgeneric_p2
- KB_doomgeneric_p3
- KB_doomgeneric_p4
- KB_doomgeneric_p5
- KB_doomgeneric_p6
- KB_doomgeneric_p7
- KB_doomgeneric_p8
- KB_doomgeneric_p9
- KB_drivers
- KB_drivers_p2
- KB_file
- KB_freedomui
- KB_fs
- KB_headers
- KB_headers_arch_x86
- KB_headers_drivers
- KB_headers_kernel
- KB_headers_p2
- KB_headers_p3
- KB_headers_p4
- KB_headers_p5
- KB_headers_p6
- KB_kernel
- KB_kernel_p2
- KB_kernel_p3
- KB_kernel_p4
- KB_lib
- KB_lisp
- KB_lua
- KB_mcp
- KB_minios
- KB_misc
- KB_misc_p2
- KB_misc_p3
- KB_mm
- KB_net
- KB_nuklear
- KB_pokemon
- KB_progs
- KB_quake2generic
- KB_root
- KB_src
- KB_src_p2
- KB_src_p3
- KB_tests
- KB_tests_p2
- KB_tls_u
- KB_tools
- KB_tools_p2
- KB_wl
- KB_x86
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p3
- SYMBOLS_p4
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes