aboutsummaryrefslogtreecommitdiff
path: root/asm/misc.S
diff options
context:
space:
mode:
Diffstat (limited to 'asm/misc.S')
-rw-r--r--asm/misc.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/asm/misc.S b/asm/misc.S
index e2b1989..0334489 100644
--- a/asm/misc.S
+++ b/asm/misc.S
@@ -9,9 +9,19 @@
#include <asm-offsets.h>
#include <processor.h>
#include <stack.h>
+#include <opal-api.h>
#define OLD_BINUTILS 1
+ .section ".rodata"
+ /* This is the OPAL branch table. It's populated at boot time
+ * with function pointers to the various OPAL functions from
+ * the content of the .opal_table section, indexed by Token.
+ */
+.global opal_branch_table
+opal_branch_table:
+ .space 8 * (OPAL_LAST + 1)
+
.section ".text","ax"
.balign 0x10