Implement CMOS register access functions

This commit is contained in:
2026-04-23 19:13:56 +02:00
parent 98f2f449f9
commit 58010c27f4
8 changed files with 123 additions and 1 deletions

View File

@@ -37,6 +37,7 @@
#define APIC_VECTOR_GENERIC 0xC1
#define APIC_VECTOR_SYNC 0xC1
#define APIC_VECTOR_CLOCK 0xD1
#define APIC_VECTOR_CLOCK_IPI 0xD2
#define APIC_VECTOR_IPI 0xE1
#define APIC_VECTOR_ERROR 0xE3
#define APIC_VECTOR_POWERFAIL 0xEF
@@ -59,6 +60,10 @@
/* Maximum number of I/O APICs */
#define APIC_MAX_IOAPICS 64
/* CMOS controller I/O ports */
#define CMOS_ADDRESS_PORT 0x70
#define CMOS_DATA_PORT 0x71
/* I/O APIC base address */
#define IOAPIC_DEFAULT_BASE 0xFEC00000