Skip to content

Commit d0ee576

Browse files
committed
crt0: use noat for __start routine
1 parent 7e5d4df commit d0ee576

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ee/startup/src/crt0.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void __start(struct sargs_start *pargs)
4444
{
4545
asm volatile(
4646
"# Clear bss area \n"
47+
".set noat \n"
4748
"la $2, _fbss \n"
4849
"la $3, _end \n"
4950
"1: \n"
@@ -73,6 +74,7 @@ void __start(struct sargs_start *pargs)
7374
" \n"
7475
"# Jump to _main \n"
7576
"j %2 \n"
77+
".set at \n"
7678
: /* No outputs. */
7779
: "R"(args_start), "R"(args), "Csy"(_main));
7880
}

0 commit comments

Comments
 (0)