1/* 2 * Boot entry point and assembler functions for armv7 tests. 3 * 4 * Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com> 5 * 6 * This work is licensed under the terms of the GNU LGPL, version 2. 7 */ 8 9.arm 10 11.section .init 12 13.globl start 14start: 15 /* 16 * bootloader params are in r0-r2 17 * See the kernel doc Documentation/arm/Booting 18 */ 19 ldr sp, =stacktop 20 bl setup 21 22 /* run the test */ 23 ldr r0, =__argc 24 ldr r0, [r0] 25 ldr r1, =__argv 26 bl main 27 bl exit 28 b halt 29 30.text 31 32.globl halt 33halt: 341: wfi 35 b 1b 36