initial commit

This commit is contained in:
2025-03-11 05:17:34 +08:00
parent d1f60e7c82
commit 9238177ad6
27 changed files with 924 additions and 0 deletions

21
bootloader/main.c Normal file
View File

@@ -0,0 +1,21 @@
#include <stddef.h>
#include <shell.h>
#include <uart.h>
extern byte_t __kernel[];
byte_t *kernel = __kernel;
void main()
{
uart_init();
uart_getc();
uart_puts("loaded addr: ");
uart_hex((unsigned int)(unsigned long)main);
uart_puts(ENDL);
int shell_cont = 1;
while (shell_cont) {
shell_cont = shell();
}
}