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

Fix compilation of aarch64 target

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

---
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -844,6 +844,7 @@ ifeq ($(arch),aarch64)
 drivers += drivers/pl011.o
 drivers += drivers/xenconsole.o
 drivers += drivers/virtio.o
+drivers += drivers/virtio-pci-device.o
 drivers += drivers/virtio-vring.o
 drivers += drivers/virtio-rng.o
 drivers += drivers/virtio-blk.o
diff --git a/drivers/virtio-device.hh b/drivers/virtio-device.hh
--- a/drivers/virtio-device.hh
+++ b/drivers/virtio-device.hh
@@ -28,7 +28,9 @@ namespace virtio {
 struct interrupt_factory {
std::function<void(interrupt_manager &)> register_msi_bindings = nullptr; std::function<pci_interrupt *(pci::device &)> create_pci_interrupt = nullptr;
+#ifndef AARCH64_PORT_STUB
std::function<gsi_edge_interrupt *()> create_gsi_edge_interrupt = nullptr;
+#endif /* !AARCH64_PORT_STUB */
 };

 // Defines virtio transport abstraction used by virtio-driver

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to