summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-03 06:29:09 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-03 06:29:09 +0000
commit602448c0561d9bdce163dc5cb8f30614ff867011 (patch)
treeff117b3082a6186af763219c6200a5bcd9ac06d7
parent2004-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-602448c0561d9bdce163dc5cb8f30614ff867011.tar.bz2
2004-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* irq/irq_asm.S: Convert #..-comments to /*..*/ comments.
-rw-r--r--c/src/lib/libbsp/i386/shared/ChangeLog4
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq_asm.S44
2 files changed, 26 insertions, 22 deletions
diff --git a/c/src/lib/libbsp/i386/shared/ChangeLog b/c/src/lib/libbsp/i386/shared/ChangeLog
index 6bbd3fa370..f919225209 100644
--- a/c/src/lib/libbsp/i386/shared/ChangeLog
+++ b/c/src/lib/libbsp/i386/shared/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * irq/irq_asm.S: Convert #..-comments to /*..*/ comments.
+
2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add PREINSTALL_DIRS.
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_asm.S b/c/src/lib/libbsp/i386/shared/irq/irq_asm.S
index 0a5d253cbe..c460f61efb 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq_asm.S
+++ b/c/src/lib/libbsp/i386/shared/irq/irq_asm.S
@@ -49,8 +49,8 @@ SYM (_ISR_Handler):
* Now switch stacks if necessary
*/
- movw SYM (i8259s_cache), ax # move current i8259 interrupt mask in ax
- pushl eax # push it on the stack
+ movw SYM (i8259s_cache), ax /* move current i8259 interrupt mask in ax */
+ pushl eax /* push it on the stack */
/*
* compute the new PIC mask:
*
@@ -80,9 +80,9 @@ SYM (_ISR_Handler):
.check_stack_switch:
pushl ebp
- movl esp, ebp # ebp = previous stack pointer
- cmpl $0, SYM (_ISR_Nest_level) # is this the outermost interrupt?
- jne nested # No, then continue
+ movl esp, ebp /* ebp = previous stack pointer */
+ cmpl $0, SYM (_ISR_Nest_level) /* is this the outermost interrupt? */
+ jne nested /* No, then continue */
movl SYM (_CPU_Interrupt_stack_high), esp
/*
@@ -93,8 +93,8 @@ SYM (_ISR_Handler):
*/
nested:
- incl SYM (_ISR_Nest_level) # one nest level deeper
- incl SYM (_Thread_Dispatch_disable_level) # disable multitasking
+ incl SYM (_ISR_Nest_level) /* one nest level deeper */
+ incl SYM (_Thread_Dispatch_disable_level) /* disable multitasking */
/*
* re-enable interrupts at processor level as the current
* interrupt source is now masked via i8259
@@ -106,15 +106,15 @@ nested:
* so we must save it again.
*/
- pushl ecx # push vector number
+ pushl ecx /* push vector number */
mov SYM (current_irq) (,ecx,4),eax
- # eax = Users handler
- call *eax # invoke user ISR
+ /* eax = Users handler */
+ call *eax /* invoke user ISR */
/*
* disable interrupts_again
*/
cli
- popl ecx # ecx = vector number
+ popl ecx /* ecx = vector number */
/*
* restore stack
*/
@@ -131,23 +131,23 @@ nested:
outb $PIC_SLAVE_IMR_IO_PORT
- decl SYM (_ISR_Nest_level) # one less ISR nest level
- # If interrupts are nested,
- # then dispatching is disabled
+ decl SYM (_ISR_Nest_level) /* one less ISR nest level */
+ /* If interrupts are nested, */
+ /* then dispatching is disabled */
decl SYM (_Thread_Dispatch_disable_level)
- # unnest multitasking
- # Is dispatch disabled
- jne .exit # Yes, then exit
+ /* unnest multitasking */
+ /* Is dispatch disabled */
+ jne .exit /* Yes, then exit */
cmpl $0, SYM (_Context_Switch_necessary)
- # Is task switch necessary?
- jne .schedule # Yes, then call the scheduler
+ /* Is task switch necessary? */
+ jne .schedule /* Yes, then call the scheduler */
cmpl $0, SYM (_ISR_Signals_to_thread_executing)
- # signals sent to Run_thread
- # while in interrupt handler?
- je .exit # No, exit
+ /* signals sent to Run_thread */
+ /* while in interrupt handler? */
+ je .exit /* No, exit */
.bframe: