Intel 81342 Developer's Manual page 741

Table of Contents

Advertisement

I n t e r r u p t C o n t r o l l e r U n i t — I n t e l
T h e I n t e l X S c a l e ® P r o c e s s o r E x c e p t i o n s A r c h i t e c t u r e
1 1 . 3
T h e I n t e l X S c a l e
p r o c e s s i n g m o d e f o r e a c h t y p e .
• I R Q a n d F I Q i n t e r n a l i n t e r r u p t e x c e p t i o n s ( n o r m a l a n d f a s t i n t e r r u p t s , r e s p e c t i v e l y )
• m e m o r y a b o r t s ( u s e d t o i m p l e m e n t m e m o r y p r o t e c t i o n o r v i r t u a l m e m o r y )
• a t t e m p t e d e x e c u t i o n o f a n u n d e f i n e d i n s t r u c t i o n
• s o f t w a r e i n t e r r u p t s ( S W I s ) ( u s e d t o m a k e a c a l l t o a n O p e r a t i n g S y s t e m )
W h e n a n e x c e p t i o n o c c u r s , s o m e o f t h e s t a n d a r d r e g i s t e r s a r e r e p l a c e d w i t h r e g i s t e r s
s p e c i f i c t o t h e e x c e p t i o n m o d e . A l l e x c e p t i o n s h a v e r e p l a c e m e n t ( o r b a n k e d ) r e g i s t e r s
f o r R 1 4 a n d R 1 3 , a n d o n e i n t e r r u p t m o d e h a s m o r e r e g i s t e r s f o r f a s t i n t e r r u p t
p r o c e s s i n g .
A f t e r a n e x c e p t i o n , R 1 4 h o l d s t h e r e t u r n a d d r e s s f o r e x c e p t i o n p r o c e s s i n g , w h i c h i s
u s e d b o t h t o r e t u r n a f t e r t h e e x c e p t i o n i s p r o c e s s e d a n d t o a d d r e s s t h e i n s t r u c t i o n t h a t
c a u s e d t h e e x c e p t i o n .
R 1 3 i s b a n k e d a c r o s s e x c e p t i o n m o d e s t o p r o v i d e e a c h e x c e p t i o n h a n d l e r w i t h a p r i v a t e
s t a c k p o i n t e r ( S P ) . T h e f a s t i n t e r r u p t m o d e a l s o b a n k s R 8 t o R 1 2 , s o t h a t i n t e r r u p t
p r o c e s s i n g c a n b e g i n w i t h o u t t h e n e e d t o s a v e o r r e s t o r e t h e s e r e g i s t e r s . T h e r e i s a
s e v e n t h p r o c e s s i n g m o d e , S y s t e m M o d e , t h a t d o e s n o t h a v e a n y b a n k e d r e g i s t e r s ( i t
u s e s t h e U s e r m o d e r e g i s t e r s ) , w h i c h i s u s e d t o r u n n o r m a l ( n o n - e x c e p t i o n ) t a s k s t h a t
r e q u i r e a p r i v i l e g e d p r o c e s s o r m o d e .
1 1 . 3 . 1
C P S R a n d S P S R
A l l o t h e r p r o c e s s o r s t a t e i s h e l d i n s t a t u s r e g i s t e r s . T h e c u r r e n t o p e r a t i n g p r o c e s s o r
s t a t u s i s i n t h e C u r r e n t P r o g r a m S t a t u s R e g i s t e r o r C P S R . T h e C P S R h o l d s :
• F o u r c o n d i t i o n c o d e f l a g s ( N e g a t i v e , Z e r o , C a r r y a n d O v e r f l o w )
• T w o i n t e r r u p t d i s a b l e b i t s ( o n e f o r e a c h t y p e o f i n t e r r u p t )
• F i v e b i t s w h i c h e n c o d e t h e c u r r e n t p r o c e s s o r m o d e
A l l f i v e e x c e p t i o n m o d e s a l s o h a v e a S a v e d P r o g r a m S t a t u s R e g i s t e r ( S P S R ) w h i c h
h o l d s t h e C P S R o f t h e t a s k i m m e d i a t e l y b e f o r e t h e e x c e p t i o n o c c u r r e d . B o t h t h e C P S R
a n d S P S R a r e a c c e s s e d w i t h s p e c i a l i n s t r u c t i o n s .
2 6 . E x c e p t i o n D e s c r i p t i o n f r o m t h e A R M A r c h i t e c t u r e R e f e r e n c e M a n u a l , p . 1 - 3 , C o p y r i g h t A d v a n c e d
R I S C M a c h i n e s L t d . ( A R M ) 1 9 9 6
D e c e m b e r 2 0 0 7
O r d e r N u m b e r : 3 1 5 0 3 7 - 0 0 2 U S
®
8 1 3 4 1 a n d 8 1 3 4 2
®
p r o c e s s o r s u p p o r t s f i v e t y p e s o f e x c e p t i o n s
2 6
, a n d a p r i v i l e g e d
®
I n t e l
8 1 3 4 1 a n d 8 1 3 4 2 I / O P r o c e s s o r s
D e v e l o p e r ' s M a n u a l
7 4 1

Advertisement

Table of Contents
loading

This manual is also suitable for:

81341

Table of Contents