bug !
This commit is contained in:
parent
a567abb97f
commit
dc91276334
|
@ -85,15 +85,19 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
|
||||||
|
|
||||||
IoPrintRtcTime();
|
IoPrintRtcTime();
|
||||||
|
|
||||||
KernLog("There was %d ticks\n", IoGetRtcTicks());
|
/* KernLog("There was %d ticks\n", IoGetRtcTicks()); */
|
||||||
uint i = 0;
|
/* uint i = 0; */
|
||||||
while (1) {
|
/* while (1) { */
|
||||||
if (!(i % (2048*5))) IoPrintRtcTime();
|
/* if (!(i % (2048*5))) IoPrintRtcTime(); */
|
||||||
KePauseCPU();
|
/* KePauseCPU(); */
|
||||||
i++;
|
/* i++; */
|
||||||
}
|
/* } */
|
||||||
|
|
||||||
|
char * cc = IoGetRtcTimeChar();
|
||||||
|
|
||||||
|
KernLog("End at %s\n", cc);
|
||||||
|
|
||||||
KernLog("Goodbye after %d ticks\n", IoGetRtcTicks());
|
|
||||||
// End this machine's suffering
|
// End this machine's suffering
|
||||||
|
BStdOut->flusher(BStdOut);
|
||||||
KeCrashSystem();
|
KeCrashSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,7 +165,7 @@ char* IoGetRtcTimeChar(void)
|
||||||
{
|
{
|
||||||
Time_t* RtcTime = IoGetRtcTime();
|
Time_t* RtcTime = IoGetRtcTime();
|
||||||
char* timeChar = "";
|
char* timeChar = "";
|
||||||
sprintf(timeChar, "[RTC Time] %d/%d/%d ; %d:%d:%d\n",
|
sprintf(timeChar, "%hhd/%hhd/%hd ; %hhd:%hhd:%hhd",
|
||||||
RtcTime->day,
|
RtcTime->day,
|
||||||
RtcTime->month,
|
RtcTime->month,
|
||||||
RtcTime->year + RtcTime->century*100,
|
RtcTime->year + RtcTime->century*100,
|
||||||
|
|
Loading…
Reference in New Issue