[rtems commit] bsp/qoriq: Enable 64-bit mode for exceptions
Sebastian Huber
sebh at rtems.org
Tue Aug 22 14:55:33 UTC 2017
Module: rtems
Branch: master
Commit: 5f42a0e4788be25bb14bc995f80c1d26f43e0b73
Changeset: http://git.rtems.org/rtems/commit/?id=5f42a0e4788be25bb14bc995f80c1d26f43e0b73
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Aug 2 09:16:10 2017 +0200
bsp/qoriq: Enable 64-bit mode for exceptions
Update #3082.
---
c/src/lib/libbsp/powerpc/qoriq/start/start.S | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/start/start.S b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
index bf1e3b9..c0bf1d5 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/start/start.S
+++ b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
@@ -139,6 +139,12 @@ _start:
.Linitearly:
#ifdef __powerpc64__
+ /* Enable 64-bit computation mode for exceptions */
+ mfspr r0, BOOKE_EPCR
+ oris r0, r0, BOOKE_EPCR_ICM >> 16
+ mtspr BOOKE_EPCR, r0
+
+ /* Enable 64-bit computation mode */
mfmsr r0
oris r0, r0, MSR_CM >> 16
mtmsr r0
More information about the vc
mailing list