fxBoot/src/hypervisor/wswitch.c

25 lines
573 B
C

//---
// hypervisor:wsiwtch - hypervisor world switch
//---
#include "fxBoot/hypervisor.h"
/* internal globals information */
HYPERVISOR_BSS void *hypervisor_current_vbr = NULL;
HYPERVISOR_BSS struct hworld *hypervisor_world_queue = NULL;
//---
// User API
//---
/* hypervisor_wswitch_check(): Check if a world switch is needed */
int hypervisor_wswitch_check(void)
{
//TODO: scan the KEYSC registers
}
/* hypervisor_wswitch(): Perform a world switch */
int hypervisor_wswitch(void)
{
//TODO: display menu
//TODO: perform a world switch woth the next world context
}