Supervisor Mode
The interrupt handler for
starting address. An additional
sor remains in Supervisor mode because
point, the processor is servicing the lowest priority interrupt. This ensures
that higher priority interrupts can be processed.
Example Code for Supervisor Mode Coming Out of Reset
To remain in Supervisor mode when coming out of the Reset state, use
code as shown in
Listing 3-2. Staying in Supervisor Mode Coming Out of Reset
P0.L = LO(EVT15) ;
P0.H = HI(EVT15) ;
P1.L = START ;
P1.H = START ;
[P0] = P1 ;
*/
P0.L = LO(IMASK) ;
R0 = [P0] ;
R1.L = EVT_IVG15 & 0xFFFF ;
R0 = R0 | R1 ;
[P0] = R0 ;
*/
RAISE 15 ;
P0.L = WAIT_HERE ;
P0.H = WAIT_HERE ;
RETI = P0 ;
3-8
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
can be set to jump to the application code
IVG15
RTI
Listing
3-2.
/* Point to IVG15 in Event Vector Table */
/* Point to start of User code */
/* Place the address of start code in IVG15 of EVT
/* Set (enable) IVG15 bit in Interrupt Mask Register
/* Invoke IVG15 interrupt */
/* RETI loaded with return address */
is not required. As a result, the proces-
remains set. At this
IPEND[15]