aboutsummaryrefslogtreecommitdiff
path: root/contrib/loaders/flash/fespi/riscv_wrapper.S
blob: 4f632a76ecae12bd102262d83dd8ee7575ad9bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#if __riscv_xlen == 64
# define LREG ld
# define SREG sd
# define REGBYTES 8
#else
# define LREG lw
# define SREG sw
# define REGBYTES 4
#endif

		.section .text.entry
		.global _start
_start:
		lla		sp, stack_end
		jal 	flash_fespi
		ebreak

		.section .data
		.balign REGBYTES
stack:
		.fill	16, REGBYTES, 0x8675309
stack_end: