1/*2 * Copyright (C) 2017 JP Bonn, Ken Rabold3 *4 * This file is subject to the terms and conditions of the GNU Lesser5 * General Public License v2.1. See the file LICENSE in the top level6 * directory for more details.7 */89.section .init10.globl _start11.type _start,@function1213_start:14 .cfi_startproc15 .cfi_undefined ra16.option push17.option norelax18 la gp, __global_pointer$19.option pop20 la sp, __StackTop212223 /* Load data section */24 la a0, _data_lma25 la a1, _data26 la a2, _edata27 bgeu a1, a2, 2f281:29 lw t0, (a0)30 sw t0, (a1)31 addi a0, a0, 432 addi a1, a1, 433 bltu a1, a2, 1b342:3536 /* Clear bss section */37 la a0, __bss_start38 la a1, _end39 bgeu a0, a1, 2f401:41 sw zero, (a0)42 addi a0, a0, 443 bltu a0, a1, 1b442:45 call register_handler46 call clock_init47 call init4849 /* Loop forever */501:51 wfi52 j 1b5354 .cfi_endproc