My Embedded Application runs on Motorola PowerPC MPC555 Microcontroller. The cross compiler is Diab 4.2b. Following is a macro for raising and restroing interrupts in MPC555.
asm unsigned int iplm_raise(void)
asm void iplm_restore(const unsigned int mask)
%reg mask ;
The calls to these asm macros are as follows:
/* critical section of code */
Following are links:
1) Link to MPC555 Manual - pages of interest are 3-20 to 3-23
2) Link to MPC555 Instruction Set - Section 9 is of interest
3) I could not find a link to Diab 4.2b Target User's Manual for PowerPC Family. However, I have soft copy
of this manual. How can I attach it? This manual explains asm macros.
Please explain above two macro in detail, line by line. Thanks.