Supervisor Mode
3-8
ADSP-BF535 Blackfin Processor Hardware Reference
Example Code to Stay in Supervisor Mode Coming Out of
Reset
To remain in Supervisor mode when coming out of Reset state, use code
as shown in
Listing 3-2
.
Listing 3-2. Staying in Supervisor Mode Coming Out of Reset
P0.L = IVG15_EVT & 0xFFFF ; /* Point to IVG15 in Event Vector
Table */
P0.H = (IVG15_EVT >> 16) & 0xFFFF;
P1.L = START ; /* Point to start of User code */
P1.H = START ;
[P0] = P1 ; /* Place the address of start code in IVG15 of EVT
*/
P0.L = IMASK & 0xFFFF ;
R0 = W[P0] ;
R1.L = IVG15 & 0xFFFF ;
R0 = R0 | R1 ;
W[P0] = R0 ; /* Set (enable) IVG15 bit in SIC Interrupt Mask
Register */
RAISE 15 ; /* Invoke IVG15 interrupt */
P0.L = WAIT_HERE ;
P0.H = WAIT_HERE ;
RETI = P0 ; /* RETI loaded with return address */
RTI ; /* Return from Reset Event */
WAIT_HERE : /* Wait here till IVG15 interrupt is serviced */
JUMP WAIT_HERE ;
START : /* IVG15 vectors here */
[--SP] = RETI ; /* Enables interrupts and saves return address
to stack */
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...