Skip to content

Commit

Permalink
Merge pull request #536 from F0bes/crt-noat
Browse files Browse the repository at this point in the history
crt0: use noat for __start routine
  • Loading branch information
uyjulian authored Feb 29, 2024
2 parents 7e5d4df + d0ee576 commit 7b20527
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee/startup/src/crt0.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void __start(struct sargs_start *pargs)
{
asm volatile(
"# Clear bss area \n"
".set noat \n"
"la $2, _fbss \n"
"la $3, _end \n"
"1: \n"
Expand Down Expand Up @@ -73,6 +74,7 @@ void __start(struct sargs_start *pargs)
" \n"
"# Jump to _main \n"
"j %2 \n"
".set at \n"
: /* No outputs. */
: "R"(args_start), "R"(args), "Csy"(_main));
}
Expand Down

0 comments on commit 7b20527

Please sign in to comment.