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:
Till Straumann
2009-12-02 01:51:22 +00:00
parent 6ce625ef5d
commit af0d5860d6
2 changed files with 24 additions and 0 deletions

View File

@@ -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

View File

@@ -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
*/