A_OBJ = start.ao main.o lib.o lib.ao time.o pci.o debug.o
A_OBJ += mm_phys.o mm_virt.o proc.o proc.ao
-main.c: Makefile.BuildNum.$(ARCH)
+#main.c: Makefile.BuildNum.$(ARCH)
POSTBUILD = objcopy $(BIN) -F binary $(BIN)
.globl _start
_start:
+ ldr r0, =DEBUG_UART_PADDR
+ ldr r1, 'A'
+ str r0, r1
+
ldr r0, =kernel_table0-KERNEL_BASE
mcr p15, 0, r0, c2, c0, 1 @ Set TTBR1 to r0
mcr p15, 0, r0, c2, c0, 0 @ Set TTBR0 to r0 too (for identity)
stack:
.space MM_KSTACK_SIZE, 0 @ Original kernel stack
+; vim: ts=8, ft=armv7
+