forked from Imagelibrary/rtems
bsps/powerpc: Fix AltiVec enable
There must be an isync after the mtmsr to ensure that the AltiVec is enabled for subsequent instructions. Close #2760.
This commit is contained in:
@@ -68,6 +68,7 @@ __rtems_entry_point:
|
||||
mfmsr r0
|
||||
oris r0, r0, (1<<(31-16-6))
|
||||
mtmsr r0
|
||||
isync
|
||||
/*
|
||||
* set vscr and vrsave to known values
|
||||
*/
|
||||
|
||||
@@ -103,6 +103,7 @@ _start:
|
||||
mfmsr r0
|
||||
oris r0, r0, (1<<(31-16-6))
|
||||
mtmsr r0
|
||||
isync
|
||||
/*
|
||||
* set vscr and vrsave to known values
|
||||
*/
|
||||
|
||||
@@ -64,6 +64,7 @@ __rtems_entry_point:
|
||||
mfmsr r0
|
||||
oris r0, r0, (1<<(31-16-6))
|
||||
mtmsr r0
|
||||
isync
|
||||
/*
|
||||
* set vscr and vrsave to known values
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user