This commit is contained in:
Adrien Bourmault 2019-11-26 21:57:22 +01:00
parent f844ed86a0
commit 1d96e30625
3 changed files with 5 additions and 6 deletions

View File

@ -29,7 +29,7 @@ noreturn void PoShutdownQemu(void)
{
KernLog("\nShutdown QEMU at %s...\n", KeFormatCurTime());
KeDelayExecution(1000);
KeSleep(1000);
IoWriteWordOnPort(0x604, 0x2000);
@ -41,7 +41,7 @@ noreturn void PoShutdownVirtualbox(void)
{
KernLog("\nShutdown VirtualBox at %s...\n", KeFormatCurTime());
KeDelayExecution(1000);
KeSleep(1000);
IoWriteWordOnPort(0x4004, 0x3400);
@ -53,7 +53,7 @@ noreturn void PoShutdownBochs(void)
{
KernLog("\nShutdown Bochs at %s...\n", KeFormatCurTime());
KeDelayExecution(1000);
KeSleep(1000);
IoWriteWordOnPort(0xB004, 0x2000);
@ -65,4 +65,3 @@ noreturn void PoShutdown(void)
{
PoShutdownQemu();
}

View File

@ -177,7 +177,7 @@ error_t CmdFloat(int argc, char **argv, char *cmdline)
KernLog("dec(b) = ");
for(double i = 0; i < param; i++) {
dec = (((b*param) - (b_ent*param)) * 10.0 * i / param);
dec = ;
KernLog("%d", (ulong)dec);
}

View File

@ -72,7 +72,7 @@ error_t bgetc(Buffer_t *buf, uchar *ch)
// (so that BStdIn works; don't make anything else)
while (buf->rp >= buf->wp) {
#ifdef _KALEID_KERNEL
KeDelayExecution(1);
KeSleep(1);
#endif
}