run: bare-metal hello boots on cortex-a7, emmc 8GiB real GPT33

This commit is contained in:
SashegDev
2026-09-07 08:46:07 +00:00
parent 5378d02ace
commit c7dcda0200
4 changed files with 145 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
/* hello guest: proves qemu cortex-a7 pipeline on zern. virt UART0 0x09000000. */
#define UART0 ((volatile unsigned int *)0x09000000)
static void uart_putc(char c) { *UART0 = (unsigned int)c; }
static void uart_puts(const char *s) { while (*s) uart_putc(*s++); }
void main(void) {
uart_puts("SAIMAA-STUB: cortex-a7 alive, RAM ok\r\n");
uart_puts("SAIMAA-STUB: next -> PBL reads SBL1 LBA 90112\r\n");
while (1) { }
}