Halt execution after unimplemented SVC

This commit is contained in:
Ryan Teal 2019-08-18 12:40:07 +01:00
parent 3855daa849
commit 113bfd059e

View File

@ -8,8 +8,10 @@ namespace lightSwitch::os {
device_state state = *((device_state *) vstate); device_state state = *((device_state *) vstate);
if (svc::svcTable[svc]) if (svc::svcTable[svc])
(*svc::svcTable[svc])(state); (*svc::svcTable[svc])(state);
else else {
state.logger->write(Logger::WARN, "Unimplemented SVC 0x{0:x}", svc); state.logger->write(Logger::ERROR, "Unimplemented SVC 0x{0:x}", svc);
state.cpu->StopExecution();
}
} }
void OS::HandleSvc(uint16_t svc) { void OS::HandleSvc(uint16_t svc) {