From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master

arm mmio serial console: use id passed in DTB for irqid instead of a hardcoded 
number

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>

---
diff --git a/drivers/mmio-isa-serial.cc b/drivers/mmio-isa-serial.cc
--- a/drivers/mmio-isa-serial.cc
+++ b/drivers/mmio-isa-serial.cc
@@ -36,7 +36,7 @@ void mmio_isa_serial_console::memory_map()
 }
 
 void mmio_isa_serial_console::dev_start() {
-    _irq.reset(new spi_interrupt(gic::irq_type::IRQ_TYPE_EDGE, 64,
+    _irq.reset(new spi_interrupt(gic::irq_type::IRQ_TYPE_EDGE, irqid,
                                  [&] { return true; },
                                  [&] { _thread->wake(); }));
     enable_interrupt();

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/0000000000009353da05a9121900%40google.com.

Reply via email to