Created
June 6, 2021 21:14
-
-
Save doug65536/4b4d0dc3874cbededfa4d74ce2da5529 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section .text.entry, "x", @progbits | |
entry: | |
la a1,___image_end | |
la a2,___image_vma | |
la a3,___image_lma | |
.Lcopy_more_data: | |
ld a4,(a3) | |
sd a4,(a2) | |
add a3,a3,8 | |
add a2,a2,8 | |
bgtu a1,a2,.Lcopy_more_data | |
la a1,___bss_en | |
la a2,___bss_st | |
.Lzero_more_bss: | |
sd a0,(a2) | |
add a2,a2,8 | |
bgtu a1,a2,.Lzero_more_bss | |
call main | |
idle_trap: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment