PoShutdown

This commit is contained in:
Julian Barathieu 2019-05-09 10:27:44 +02:00
parent 43da9c40c4
commit bd5f99ed37
5 changed files with 9 additions and 4 deletions

View File

@ -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);

View File

@ -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();
} }

View File

@ -59,3 +59,8 @@ noreturn void PoShutdownBochs(void)
__builtin_unreachable(); __builtin_unreachable();
} }
noreturn void PoShutdown(void)
{
PoShutdownQemu();
}

View File

@ -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;
} }

View File

@ -111,7 +111,7 @@ void KeStartShell(void)
break; break;
case KEY_ESC: case KEY_ESC:
PoShutdownQemu(); PoShutdown();
break; break;
default: default: