/* SPDX-License-Identifier: BSD-2-Clause */ // Written by SASANO Takayoshi .section .text .arm .align 0 .global _start _start: push {r0, r1, r2} mov r0, #0 ldr r1, =_bss_start ldr r2, =_bss_end 0: stmia r1!, {r0} cmp r1, r2 blt 0b pop {r0, r1, r2} ldr ip, =search_hint str sp, [ip] b main .global call_uboot_syscall .type call_uboot_syscall, %function .arm call_uboot_syscall: ldr ip, =syscall_ptr ldr ip, [ip] cmp ip, #0 bxne ip mov r0, #-1 bx lr .pool .section .bss .align 4 .comm search_hint, 4 .comm syscall_ptr, 4