feat: added debug traces and added support for booting using grub and

tftp
This commit is contained in:
2021-03-08 22:00:07 +01:00
parent 945b18b2b2
commit cefdb8ed90
12 changed files with 253 additions and 380 deletions

View File

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