Chapter 3. Using the Monitor/Debug Firmware 3-41
System Call Functions
C example:
int
board_isr_remove (void *handler)
{
asm( "addi r10,r0,0x0041");
asm( "sc");
}
3.5.6 EXIT_TO_dBUG
This function transfers the control back to the dBUG, by terminating the user code. The register
context is preserved.
C example (see “scif.s”file : anything in R10 besides 0x0000, 0x0001, 0x0020, 0x0030, 0x0031,
0x0040, 0x0041):
asm( "addi r10,r0,0x0063");
asm( "sc");
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Commentaires sur ces manuels