aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/arch/powerpc/lib/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/arch/powerpc/lib/traps.c')
-rw-r--r--roms/u-boot/arch/powerpc/lib/traps.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/roms/u-boot/arch/powerpc/lib/traps.c b/roms/u-boot/arch/powerpc/lib/traps.c
new file mode 100644
index 000000000..c7bce82a4
--- /dev/null
+++ b/roms/u-boot/arch/powerpc/lib/traps.c
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ */
+
+#include <init.h>
+#include <asm/global_data.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+void trap_init(unsigned long reloc_addr);
+
+int arch_initr_trap(void)
+{
+ trap_init(gd->relocaddr);
+
+ return 0;
+}