Skip to content

Commit 69891dc

Browse files
committed
tools/nolibc: MIPS: drop noreorder option
There are no more statements in the assembly code which would require the usage of ".set noreorder". Remove the option. This also allows removal of the manual "nop" instruction in the delay slot. Suggested-by: Maciej W. Rozycki <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Thomas Weißschuh <[email protected]> Tested-by: Sebastian Andrzej Siewior <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 36aab16 commit 69891dc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/include/nolibc/arch-mips.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,11 @@ void __start(void);
183183
void __attribute__((weak, noreturn)) __nolibc_entrypoint __no_stack_protector __start(void)
184184
{
185185
__asm__ volatile (
186-
".set push\n"
187-
".set noreorder\n"
188186
"move $a0, $sp\n" /* save stack pointer to $a0, as arg1 of _start_c */
189187
"addiu $sp, $sp, -16\n" /* the callee expects to save a0..a3 there */
190188
"lui $t9, %hi(_start_c)\n" /* ABI requires current function address in $t9 */
191189
"ori $t9, %lo(_start_c)\n"
192190
"jalr $t9\n" /* transfer to c runtime */
193-
" nop\n" /* delayed slot */
194-
".set pop\n"
195191
);
196192
__nolibc_entrypoint_epilogue();
197193
}

0 commit comments

Comments
 (0)