Skip to content
Snippets Groups Projects
Commit 1baac59e authored by John Hodge's avatar John Hodge
Browse files

Misc fiddling to ARMv7 for trimslice builds

parent 94be93ec
No related merge requests found
......@@ -13,6 +13,6 @@ LDFLAGS += `$(CC) --print-libgcc-file-name`
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)
......@@ -18,6 +18,10 @@ ivt_fiq: b . @ 0x1C FIQ (Fast interrupt)
.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)
......@@ -305,3 +309,5 @@ kernel_exception_map:
stack:
.space MM_KSTACK_SIZE, 0 @ Original kernel stack
; vim: ts=8, ft=armv7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment