forked from Imagelibrary/rtems
2009-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/start/start.S: Added AltiVec support (initializing MSR[VE], VSCR and VRSAVE).
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-12-01 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* shared/start/start.S: Added AltiVec support (initializing
|
||||
MSR[VE], VSCR and VRSAVE).
|
||||
|
||||
2009-12-01 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* shared/vme/vme_universe.c: moved extern declaration
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
* found in found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
<<<<<<< start.S
|
||||
* $Id$
|
||||
=======
|
||||
* $Id$
|
||||
>>>>>>> 1.25
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -60,6 +64,21 @@ __rtems_entry_point:
|
||||
mr r29,r5
|
||||
mr r28,r6
|
||||
mr r27,r7
|
||||
|
||||
#ifdef __ALTIVEC__
|
||||
/* enable altivec; gcc may use it! */
|
||||
mfmsr r0
|
||||
oris r0, r0, (1<<(31-16-6))
|
||||
mtmsr r0
|
||||
/*
|
||||
* set vscr and vrsave to known values
|
||||
*/
|
||||
li r0, 0
|
||||
mtvrsave r0
|
||||
vxor 0,0,0
|
||||
mtvscr 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Make sure we have nothing in BATS and TLB
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user