From d42c2061e1b8abb7ddaf628b6016e7a1ad8eedb0 Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Wed, 18 Oct 2023 18:22:08 -0400 Subject: kernel/amd64: lapic: Update docs Signed-off-by: sigsegv7 --- sys/include/arch/amd64/lapicvar.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/include/arch/amd64/lapicvar.h b/sys/include/arch/amd64/lapicvar.h index 67cb277..6c2c37f 100644 --- a/sys/include/arch/amd64/lapicvar.h +++ b/sys/include/arch/amd64/lapicvar.h @@ -79,7 +79,13 @@ #define LAPIC_SW_ENABLE (__BIT(8) | 0xFF) #define x2APIC_ENABLE_SHIFT 10 -/* The initial logical APIC ID to be set */ +/* + * The initial logical APIC ID to be set + * + * XXX: This value does *not* apply to processors + * that support x2APIC mode. In x2APIC mode + * the LDR register is readonly to system software. + */ #define LAPIC_STARTUP_LID 0x1 /* LVT bits */ -- cgit v1.2.3