From 72c64da87cd04a5c930d6a0bbc1b40964d996426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefano=20Carn=C3=A0?= Date: Tue, 11 May 2021 12:15:54 +0200 Subject: [PATCH] Fix wrong value NR_VECTORS is 256 if CONFIG_X86_LOCAL_APIC is not defined, else it gets 0xec (LOCAL_TIMER_VECTOR). --- Interrupts/linux-interrupts-8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Interrupts/linux-interrupts-8.md b/Interrupts/linux-interrupts-8.md index 6f4149c..74888f8 100644 --- a/Interrupts/linux-interrupts-8.md +++ b/Interrupts/linux-interrupts-8.md @@ -369,7 +369,7 @@ for the `variable_test_bit`. These two code listings starts with the same part, After this we put this value to the `eax`, so `eax` register now contains value of the `nr`. In the end we do the same that in the first example, we put the `$268435456` (the first parameter of the `variable_test_bit` function) and the value of the `eax` (value of `nr`) to the `edi` register (the second parameter of the `variable_test_bit function`). -The next step after the `apic_intr_init` function will finish its work is the setting interrupt gates from the `FIRST_EXTERNAL_VECTOR` or `0x20` to the `0x256`: +The next step after the `apic_intr_init` function will finish its work is the setting interrupt gates from the `FIRST_EXTERNAL_VECTOR` or `0x20` up to `0x100`: ```C i = FIRST_EXTERNAL_VECTOR;