diff options
Diffstat (limited to 'kernel.c')
-rw-r--r-- | kernel.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -44,9 +44,13 @@ void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags) asm("LDR r0, =0x3F00B200\n\r" "MOV r1, #2\n\r" - "STR r1, [r0, #0x04]\n\r"); + "STR r1, [r0, #0x00]\n\r"); - *(int *)(0xE000ED0C) = 1; + *(int *)(0x7E00B210) = 1; + *(int *)(0x7E00B214) = 1; + *(int *)(0x7E00B218) = 1; + uart_putc(*(int*)(0x40000034) ); + *(int *)(0x40000034) = 1; // prints some info and sets up a section for PL0 code, loads a blob |