aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2016-03-07 13:27:32 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-03-07 14:03:55 +1100
commitde9f52b7bb8672e52430918c58fbf9dc7cb2e876 (patch)
tree45cb8631f7df26d5469748cfe021538ad58ee542
parentbc85dfa8ed4ae65ddce127d7ff2f2a2a15223e04 (diff)
downloadskiboot-de9f52b7bb8672e52430918c58fbf9dc7cb2e876.zip
skiboot-de9f52b7bb8672e52430918c58fbf9dc7cb2e876.tar.gz
skiboot-de9f52b7bb8672e52430918c58fbf9dc7cb2e876.tar.bz2
init: Update comments for branch null catcher
Make note that this will be broken for little endian. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--core/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c
index 54a5735..1d2f6e0 100644
--- a/core/init.c
+++ b/core/init.c
@@ -533,6 +533,12 @@ static void branch_null(void)
static void setup_branch_null_catcher(void)
{
void (*bn)(void) = branch_null;
+
+ /*
+ * FIXME: This copies the function descriptor (16 bytes) for
+ * ABI v1 (ie. big endian). This will be broken if we ever
+ * move to ABI v2 (ie little endian)
+ */
memcpy(0, bn, 16);
}