.section .text.start

.global _start
_start:
	// Set up a stack.
	ldr x0, =kstack.end
	mov sp, x0

	// Enable NEON.
	mrs x0, CPACR_EL1
	orr x0, x0, #0x00300000
	msr CPACR_EL1, x0

	// Do device-specific initialization.
	bl platform.init

	// Run the root process.
	b root_process.start

.section .bss.kstack

// This stack is small, because Forth code doesn't use it at all.
.align 16
kstack: .skip 1024
.set kstack.end, .

// vim: set ft=arm64asm :