Files
sloop-fm1/firmware/loader/crt0_ldr.S
T
2026-10-04 11:08:49 -04:00

17 lines
558 B
ArmAsm

/* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments */
/* Felucca update loader entry. The SPL decompresses the loader to its load
* address (0x01C0A800) and calls its first byte. Interrupts off,
* our own stacks, clear .bss, then C. Never returns. */
.section .text.crt0,"ax",@progbits
.globl _start
_start:
goto 1f
.ascii "FELUCCA-LOADER-1" /* 16 bytes: Felucca recognises its loader in a package by this */
.balign 2
1: cli
sp = _stack_top
ssp = _sstack_top
call ldr_cstart
goto .