Minor stuff
This commit is contained in:
parent
40f38f4275
commit
43da9c40c4
|
@ -114,7 +114,7 @@ void BtDoSanityChecks(uint mbMagic) {
|
||||||
tmp = (BtLoaderInfo.kernelEndAddr
|
tmp = (BtLoaderInfo.kernelEndAddr
|
||||||
- BtLoaderInfo.kernelAddr) / KB;
|
- BtLoaderInfo.kernelAddr) / KB;
|
||||||
DebugLog("[Init] Kernel successfully loaded at %p with %x magic\n"
|
DebugLog("[Init] Kernel successfully loaded at %p with %x magic\n"
|
||||||
" and it uses %d Kio\n\n",
|
" and it uses %dKB\n\n",
|
||||||
BtLoaderInfo.kernelAddr,
|
BtLoaderInfo.kernelAddr,
|
||||||
mbMagic,tmp);
|
mbMagic,tmp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,13 +50,17 @@ error_t CmdQuit(int argc, char **argv, char *cmdline)
|
||||||
|
|
||||||
error_t CmdHelp(int argc, char **argv, char *cmdline)
|
error_t CmdHelp(int argc, char **argv, char *cmdline)
|
||||||
{
|
{
|
||||||
uint count = 0;
|
uint i, count = 0;
|
||||||
Command_t *cmd;
|
Command_t *cmd;
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
KernLog("List of all shell built-ins:\n");
|
KernLog("List of all shell built-ins:\n");
|
||||||
for (cmd = cmdtable; cmd->name != NULL; cmd++, count++) {
|
for (cmd = cmdtable; cmd->name != NULL; cmd++, count++) {
|
||||||
KernLog("\t%s\t\t%s\n", cmd->name, cmd->help);
|
KernLog("\t%s", cmd->name);
|
||||||
|
for (i = strlen(cmd->name)/4; i<3; i++) {
|
||||||
|
KernLog("\t");
|
||||||
|
}
|
||||||
|
KernLog("%s\n", cmd->help);
|
||||||
}
|
}
|
||||||
KernLog("End of list; %u commands total\n", count);
|
KernLog("End of list; %u commands total\n", count);
|
||||||
}
|
}
|
||||||
|
@ -135,11 +139,11 @@ error_t CmdDie(int argc, char **argv, char *cmdline)
|
||||||
Command_t cmdtable[] =
|
Command_t cmdtable[] =
|
||||||
{
|
{
|
||||||
{ "beep", CmdBeep, "Make a beep" },
|
{ "beep", CmdBeep, "Make a beep" },
|
||||||
{ "sw", CmdStarWars, "?"},
|
|
||||||
{ "date", CmdDate, "Print date" },
|
{ "date", CmdDate, "Print date" },
|
||||||
{ "die", CmdDie, "Die painfully" },
|
{ "die", CmdDie, "Die painfully" },
|
||||||
{ "exit", CmdQuit, "Initiate shutdown" },
|
{ "exit", CmdQuit, "Initiate shutdown" },
|
||||||
{ "help", CmdHelp, "Show this message" },
|
{ "help", CmdHelp, "Show this message" },
|
||||||
|
{ "march", CmdStarWars, "Play the Imperial March"},
|
||||||
{ "mmap", CmdMemMap, "Show memory map" },
|
{ "mmap", CmdMemMap, "Show memory map" },
|
||||||
{ "musage", CmdMemUsage, "Show memory statistics" },
|
{ "musage", CmdMemUsage, "Show memory statistics" },
|
||||||
{ "pstest", CmdPsTest, "Scheduler test routine" },
|
{ "pstest", CmdPsTest, "Scheduler test routine" },
|
||||||
|
|
Loading…
Reference in New Issue