forked from Imagelibrary/rtems
2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu_asm.S: Spacing and comment alignment.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* cpu_asm.S: Spacing and comment alignment.
|
||||
|
||||
2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility.
|
||||
|
||||
@@ -127,7 +127,8 @@ norst: frestore a0@+ | restore the fp state frame
|
||||
.global SYM (_ISR_Handler)
|
||||
|
||||
SYM (_ISR_Handler):
|
||||
addql #1,SYM (_Thread_Dispatch_disable_level) | disable multitasking
|
||||
| disable multitasking
|
||||
addql #1,SYM (_Thread_Dispatch_disable_level)
|
||||
#if ( !defined(__mcoldfire__) )
|
||||
moveml d0-d1/a0-a1,a7@- | save d0-d1,a0-a1
|
||||
#else
|
||||
@@ -139,7 +140,8 @@ SYM (_ISR_Handler):
|
||||
|
||||
|
||||
#if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == 1 )
|
||||
movel _CPU_Interrupt_stack_high,a0 | a0 now point just above interrupt stack
|
||||
| Make a0 point just above interrupt stack
|
||||
movel _CPU_Interrupt_stack_high,a0
|
||||
cmpl _CPU_Interrupt_stack_low,a7 | stack below interrupt stack?
|
||||
bcs.b 1f | yes, switch to interrupt stack
|
||||
cmpl a0,a7 | stack above interrupt stack?
|
||||
@@ -147,7 +149,8 @@ SYM (_ISR_Handler):
|
||||
1:
|
||||
movel a7,a1 | copy task stack pointer
|
||||
movel a0,a7 | switch to interrupt stack
|
||||
movel a1,a7@- | store task stack pointer on interrupt stack
|
||||
movel a1,a7@- | store task stack pointer
|
||||
| on interrupt stack
|
||||
2:
|
||||
#endif /* CPU_HAS_SOFTWARE_INTERRUPT_STACK == 1 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user