This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2ed88f8813 x64: add acrn ioapic init support
2ed88f8813 is described below

commit 2ed88f8813f7ff3dbdf0751e66114e6454460d0f
Author: andi6 <[email protected]>
AuthorDate: Fri Feb 2 11:01:00 2024 +0800

    x64: add acrn ioapic init support
    
    if we two step to set interrupt trigger and disable interrupt,
    acrn will inject #GP exception
    
    Signed-off-by: andi6 <[email protected]>
---
 arch/x86_64/src/intel64/intel64_irq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86_64/src/intel64/intel64_irq.c 
b/arch/x86_64/src/intel64/intel64_irq.c
index 2e9c9a21a4..1255603d98 100644
--- a/arch/x86_64/src/intel64/intel64_irq.c
+++ b/arch/x86_64/src/intel64/intel64_irq.c
@@ -323,8 +323,8 @@ static void up_ioapic_init(void)
 
   for (i = 0; i < maxintr; i++)
     {
-      up_ioapic_pin_set_vector(i, TRIGGER_RISING_EDGE, IRQ0 + i);
-      up_ioapic_mask_pin(i);
+      up_ioapic_pin_set_vector(i, TRIGGER_RISING_EDGE |
+                               IOAPIC_PIN_DISABLE, IRQ0 + i);
     }
 }
 #endif

Reply via email to