@ -1,11 +1,59 @@
/ *
FreeRTOS. o r g V 5 . 0 . 3 - C o p y r i g h t ( C ) 2 0 0 3 - 2 0 0 8 R i c h a r d B a r r y .
This f i l e i s p a r t o f t h e F r e e R T O S . o r g d i s t r i b u t i o n .
FreeRTOS. o r g i s f r e e s o f t w a r e ; you can redistribute it and/or modify
it u n d e r t h e t e r m s o f t h e G N U G e n e r a l P u b l i c L i c e n s e a s p u b l i s h e d b y
the F r e e S o f t w a r e F o u n d a t i o n ; either version 2 of the License, or
( at y o u r o p t i o n ) a n y l a t e r v e r s i o n .
FreeRTOS. o r g i s d i s t r i b u t e d i n t h e h o p e t h a t i t w i l l b e u s e f u l ,
but W I T H O U T A N Y W A R R A N T Y ; without even the implied warranty of
MERCHANTABILITY o r F I T N E S S F O R A P A R T I C U L A R P U R P O S E . S e e t h e
GNU G e n e r a l P u b l i c L i c e n s e f o r m o r e d e t a i l s .
You s h o u l d h a v e r e c e i v e d a c o p y o f t h e G N U G e n e r a l P u b l i c L i c e n s e
along w i t h F r e e R T O S . o r g ; if not, write to the Free Software
Foundation, I n c . , 5 9 T e m p l e P l a c e , S u i t e 3 3 0 , B o s t o n , M A 0 2 1 1 1 - 1 3 0 7 U S A
A s p e c i a l e x c e p t i o n t o t h e G P L c a n b e a p p l i e d s h o u l d y o u w i s h t o d i s t r i b u t e
a c o m b i n e d w o r k t h a t i n c l u d e s F r e e R T O S . o r g , w i t h o u t b e i n g o b l i g e d t o p r o v i d e
the s o u r c e c o d e f o r a n y p r o p r i e t a r y c o m p o n e n t s . S e e t h e l i c e n s i n g s e c t i o n
of h t t p : / / w w w . F r e e R T O S . o r g f o r f u l l d e t a i l s o f h o w a n d w h e n t h e e x c e p t i o n
can b e a p p l i e d .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* SAVE T I M E A N D M O N E Y ! W e c a n p o r t F r e e R T O S . o r g t o y o u r o w n h a r d w a r e , *
* and e v e n w r i t e a l l o r p a r t o f y o u r a p p l i c a t i o n o n y o u r b e h a l f . *
* See h t t p : / / w w w . O p e n R T O S . c o m f o r d e t a i l s o f t h e s e r v i c e s w e p r o v i d e t o *
* expedite y o u r p r o j e c t . *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Please e n s u r e t o r e a d t h e c o n f i g u r a t i o n a n d r e l e v a n t p o r t s e c t i o n s o f t h e
online d o c u m e n t a t i o n .
http : / / www. F r e e R T O S . o r g - D o c u m e n t a t i o n , l a t e s t i n f o r m a t i o n , l i c e n s e a n d
contact d e t a i l s .
http : / / www. S a f e R T O S . c o m - A v e r s i o n t h a t i s c e r t i f i e d f o r u s e i n s a f e t y
critical s y s t e m s .
http : / / www. O p e n R T O S . c o m - C o m m e r c i a l s u p p o r t , d e v e l o p m e n t , p o r t i n g ,
licensing a n d t r a i n i n g s e r v i c e s .
* /
/ *
* File : mcf5 x x x . s
* Purpose : Lowest l e v e l r o u t i n e s f o r a l l C o l d F i r e p r o c e s s o r s .
*
* Notes :
*
* Function c o p i e d f r o m m c f5 x x x . S p r o v i d e d b y F r e e S c a l e .
*
* ulPortSetIPL( ) a n d m c f5 x x x _ w r _ c a c r ( ) c o p i e d w i t h p e r m i s s i o n f r o m F r e e S c a l e
* supplied s o u r c e f i l e s .
* /
.global ulPortSetIPL
@ -25,6 +73,7 @@
.endm
.macro portRESTORE_CONTEXT
move. l p x C u r r e n t T C B , % a0
move. l ( % a0 ) , % s p
movem. l ( % s p ) , % d0 - % f p
@ -55,7 +104,7 @@ ulPortSetIPL:
lsr. l #8 ,D 0 / * I P L * /
move. l 8 ( A 6 ) ,D 6 / * g e t a r g u m e n t * /
andi. l #0x07 ,D 6 / * l e a s t s i g n i f i c a n t t h r e e b i t s * /
andi. l #0x07 ,D 6 / * l e a s t s i g n i f i c a n t t h r e e b i t s * /
lsl. l #8 ,D 6 / * m o v e o v e r t o m a k e m a s k * /
andi. l #0x0000F8FF ,D 7 / * z e r o o u t c u r r e n t I P L * /
@ -70,7 +119,7 @@ ulPortSetIPL:
mcf5xxx_wr_cacr :
move. l 4 ( s p ) ,d0
.long 0x4e7b0002 /* movec d0,cacr */
.long 0x4e7b0002 /* movec d0,cacr */
nop
rts