rt-thread/components/vmm/vmm_vector.c

32 lines
654 B
C
Raw Normal View History

2014-03-29 12:14:24 +08:00
/*
* VMM vector handle
2021-03-08 18:19:04 +08:00
*
* COPYRIGHT (C) 2011-2021, Real-Thread Information Technology Ltd
* All rights reserved
2021-03-08 18:19:04 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2014-03-29 12:14:24 +08:00
*
* Change Logs:
* Date Author Notes
* 2013-06-15 Bernard the first verion
*/
#include <rthw.h>
#include <rtthread.h>
#include <interrupt.h>
#include "vmm.h"
void vmm_guest_isr(int irqno, void* parameter)
{
/* nothing, let GuestOS to handle it */
rt_hw_interrupt_clear(irqno);
}
void vmm_vector_init(void)
{
2021-03-08 18:19:04 +08:00
rt_hw_interrupt_install(RT_VMM_VIRQ_TRIGGER, vmm_guest_isr, RT_NULL, "virq");
rt_hw_interrupt_umask(RT_VMM_VIRQ_TRIGGER);
2014-03-29 12:14:24 +08:00
2021-03-08 18:19:04 +08:00
return;
2014-03-29 12:14:24 +08:00
}