PoShutdown
This commit is contained in:
parent
43da9c40c4
commit
bd5f99ed37
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
//----------------------------------------------------------------------------//
|
//----------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
noreturn void PoShutdown(void);
|
||||||
noreturn void PoShutdownQemu(void);
|
noreturn void PoShutdownQemu(void);
|
||||||
noreturn void PoShutdownVirtualbox(void);
|
noreturn void PoShutdownVirtualbox(void);
|
||||||
noreturn void PoShutdownBochs(void);
|
noreturn void PoShutdownBochs(void);
|
||||||
|
|
|
@ -64,6 +64,5 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
|
||||||
|
|
||||||
KeStartShell();
|
KeStartShell();
|
||||||
|
|
||||||
KernLog("End of input reached\n");
|
PoShutdown();
|
||||||
PoShutdownQemu();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,3 +59,8 @@ noreturn void PoShutdownBochs(void)
|
||||||
__builtin_unreachable();
|
__builtin_unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
noreturn void PoShutdown(void)
|
||||||
|
{
|
||||||
|
PoShutdownQemu();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ error_t CmdStarWars(int argc, char **argv, char *cmdline)
|
||||||
|
|
||||||
error_t CmdQuit(int argc, char **argv, char *cmdline)
|
error_t CmdQuit(int argc, char **argv, char *cmdline)
|
||||||
{
|
{
|
||||||
PoShutdownQemu();
|
PoShutdown();
|
||||||
return EOK;
|
return EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ void KeStartShell(void)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KEY_ESC:
|
case KEY_ESC:
|
||||||
PoShutdownQemu();
|
PoShutdown();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue