Skip to content

Commit

Permalink
MIPS: boot: Cleanup head.S
Browse files Browse the repository at this point in the history
- Remove .cprestore which 1. doesn't provide any offset, which causes
  LLVM's assembler to choke, and 2. is not actually needed since $gp is
  not written anywhere in this function.

- Remove the .start label since it is already defined within the LEAF()
  macro.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Jan 10, 2021
1 parent e2dafe0 commit 94083b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/mips/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
#include <asm/regdef.h>

.set noreorder
.cprestore
LEAF(start)
start:

LEAF(start)
/* Save boot rom start args */
move s0, a0
move s1, a1
Expand Down

0 comments on commit 94083b4

Please sign in to comment.