summaryrefslogtreecommitdiff
path: root/arch/nios2/cpu
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-01-20 12:23:33 -0500
committerTom Rini <trini@konsulko.com>2020-01-20 12:23:33 -0500
commitc7819d409ab7671991bf906482b7adcc21266f75 (patch)
treeeab7a9eba205f31dd1f4b606ec58d64ec5e933f1 /arch/nios2/cpu
parentc8a1198665b81113535e89c791a7991abe481d62 (diff)
parentaddc376318d765902027021d88f693e95d1e1bcd (diff)
Merge branch '2020-01-17-reduce-size-of-common-h-even-more'
- Bring in Simon Glass's series that reduces what we have in <common.h> even more.
Diffstat (limited to 'arch/nios2/cpu')
-rw-r--r--arch/nios2/cpu/start.S2
-rw-r--r--arch/nios2/cpu/traps.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S
index 2900200dbb..f5ad184e8d 100644
--- a/arch/nios2/cpu/start.S
+++ b/arch/nios2/cpu/start.S
@@ -147,7 +147,7 @@ _reloc:
* We'll call the board_init_r from here since this isn't
* supposed to return.
*
- * void relocate_code (ulong sp, gd_t *global_data,
+ * void relocate_code(ulong sp, gd_t *global_data,
* ulong reloc_addr)
* __attribute__ ((noreturn));
*/
diff --git a/arch/nios2/cpu/traps.c b/arch/nios2/cpu/traps.c
index 1c3cc03178..087a05097d 100644
--- a/arch/nios2/cpu/traps.c
+++ b/arch/nios2/cpu/traps.c
@@ -4,8 +4,9 @@
* Scott McNutt <smcnutt@psyent.com>
*/
-#include <asm/ptrace.h>
#include <common.h>
+#include <hang.h>
+#include <asm/ptrace.h>
void trap_handler (struct pt_regs *regs)
{
@@ -21,5 +22,5 @@ void soft_emulation (struct pt_regs *regs)
*/
printf ("\n\n*** ERROR: unimplemented instruction @ %08x\n",
regs->reg[29] - 4);
- hang ();
+ hang();
}