1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License 2. See the file "COPYING-GPL-2" in the main directory of this 4 * archive for more details. 5 * 6 * Copyright (C) 2013 Imagination Technologies Ltd. 7 * Author: Yann Le Du <ledu@kymasys.com> 8 */ 9 10#include <sys/asm.h> 11 12.section .text.init, "ax" 13.type __start, @function 14.globl __start 15.set noreorder 16__start: 17 SETUP_GPX($0) 18 SETUP_GPX64($25, $0) 19 PTR_LA $29, crt0_stack_high 20 PTR_LA $25, init 21 PTR_SUBU $29, (NARGSAVE * SZREG) 22 jalr $25 23 nop 241: 25 b 1b 26 27.section ".bss", "aw" 28.align 12 29.global crt0_stack_low 30crt0_stack_low: 31 .space 4096 32.global crt0_stack_high 33crt0_stack_high: 34