vmm_vector.c 654 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * VMM vector handle
  3. *
  4. * COPYRIGHT (C) 2011-2021, Real-Thread Information Technology Ltd
  5. * All rights reserved
  6. *
  7. * SPDX-License-Identifier: Apache-2.0
  8. *
  9. * Change Logs:
  10. * Date Author Notes
  11. * 2013-06-15 Bernard the first verion
  12. */
  13. #include <rthw.h>
  14. #include <rtthread.h>
  15. #include <interrupt.h>
  16. #include "vmm.h"
  17. void vmm_guest_isr(int irqno, void* parameter)
  18. {
  19. /* nothing, let GuestOS to handle it */
  20. rt_hw_interrupt_clear(irqno);
  21. }
  22. void vmm_vector_init(void)
  23. {
  24. rt_hw_interrupt_install(RT_VMM_VIRQ_TRIGGER, vmm_guest_isr, RT_NULL, "virq");
  25. rt_hw_interrupt_umask(RT_VMM_VIRQ_TRIGGER);
  26. return;
  27. }