feat: added debug traces and added support for booting using grub and
tftp
This commit is contained in:
@@ -44,15 +44,26 @@ void help(const char *args);
|
||||
|
||||
void shutdown(const char *args);
|
||||
|
||||
void explode(const char *args);
|
||||
|
||||
cmd_handler cmd_handlers[] = {
|
||||
{"help\0", help},
|
||||
{"echo\0", echo},
|
||||
{"print\0", print},
|
||||
{"ide\0", ide},
|
||||
{"shutdown", shutdown},
|
||||
{"explode", explode},
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
|
||||
void explode(const char *args) {
|
||||
uint32_t x = 0;
|
||||
uint32_t y = 0;
|
||||
__asm__("div %%ebx" :
|
||||
"=a" (x), "=b" (y));
|
||||
}
|
||||
|
||||
void shutdown(const char *args) {
|
||||
power_shutdown();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user