diff options
| author | dzzxzz <[email protected]> | 2011-09-19 04:40:50 +0000 |
|---|---|---|
| committer | dzzxzz <[email protected]> | 2011-09-19 04:40:50 +0000 |
| commit | 865c1d4df0f416bd8b60cff71320ac940f0241e2 (patch) | |
| tree | 3ffdcf170d6b4a336a058dbb6155fa20e8d47379 /libcpu/mips | |
| parent | c883902d0b87920b992912f0c6bde6688c6af382 (diff) | |
fix a spelling error
rt_thread_switch_interrput_flag -> rt_thread_switch_interrupt_flag
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1712 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/mips')
| -rw-r--r-- | libcpu/mips/jz47xx/context_gcc.S | 10 | ||||
| -rw-r--r-- | libcpu/mips/jz47xx/interrupt.c | 4 | ||||
| -rw-r--r-- | libcpu/mips/loongson/context_gcc.S | 10 | ||||
| -rw-r--r-- | libcpu/mips/loongson/interrupt.c | 4 |
4 files changed, 14 insertions, 14 deletions
diff --git a/libcpu/mips/jz47xx/context_gcc.S b/libcpu/mips/jz47xx/context_gcc.S index 00576d8f48..42b0d13033 100644 --- a/libcpu/mips/jz47xx/context_gcc.S +++ b/libcpu/mips/jz47xx/context_gcc.S @@ -60,17 +60,17 @@ rt_hw_context_switch_to: /*
* void rt_hw_context_switch_interrupt(rt_uint32 from, rt_uint32 to)/*
*/
- .globl rt_thread_switch_interrput_flag
+ .globl rt_thread_switch_interrupt_flag
.globl rt_interrupt_from_thread
.globl rt_interrupt_to_thread
.globl rt_hw_context_switch_interrupt
rt_hw_context_switch_interrupt:
- la t0, rt_thread_switch_interrput_flag
+ la t0, rt_thread_switch_interrupt_flag
lw t1, 0(t0)
nop
bnez t1, _reswitch
nop
- li t1, 0x01 /* set rt_thread_switch_interrput_flag to 1 */
+ li t1, 0x01 /* set rt_thread_switch_interrupt_flag to 1 */
sw t1, 0(t0)
la t0, rt_interrupt_from_thread /* set rt_interrupt_from_thread */
sw a0, 0(t0)
@@ -115,10 +115,10 @@ mips_irq_handle: move sp, k0
/*
- * if rt_thread_switch_interrput_flag set, jump to
+ * if rt_thread_switch_interrupt_flag set, jump to
* rt_hw_context_switch_interrupt_do and don't return
*/
- la k0, rt_thread_switch_interrput_flag
+ la k0, rt_thread_switch_interrupt_flag
lw k1, 0(k0)
beqz k1, spurious_interrupt
nop
diff --git a/libcpu/mips/jz47xx/interrupt.c b/libcpu/mips/jz47xx/interrupt.c index d7aa0ea209..78ba87c2e9 100644 --- a/libcpu/mips/jz47xx/interrupt.c +++ b/libcpu/mips/jz47xx/interrupt.c @@ -18,7 +18,7 @@ extern rt_uint32_t rt_interrupt_nest;
rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread;
-rt_uint32_t rt_thread_switch_interrput_flag;
+rt_uint32_t rt_thread_switch_interrupt_flag;
static rt_isr_handler_t irq_handle_table[JZ47XX_MAX_INTR];
@@ -48,7 +48,7 @@ void rt_hw_interrupt_init() rt_interrupt_nest = 0;
rt_interrupt_from_thread = 0;
rt_interrupt_to_thread = 0;
- rt_thread_switch_interrput_flag = 0;
+ rt_thread_switch_interrupt_flag = 0;
}
/**
diff --git a/libcpu/mips/loongson/context_gcc.S b/libcpu/mips/loongson/context_gcc.S index 1611f1cd86..65cab6e147 100644 --- a/libcpu/mips/loongson/context_gcc.S +++ b/libcpu/mips/loongson/context_gcc.S @@ -60,17 +60,17 @@ rt_hw_context_switch_to: /*
* void rt_hw_context_switch_interrupt(rt_uint32 from, rt_uint32 to)/*
*/
- .globl rt_thread_switch_interrput_flag
+ .globl rt_thread_switch_interrupt_flag
.globl rt_interrupt_from_thread
.globl rt_interrupt_to_thread
.globl rt_hw_context_switch_interrupt
rt_hw_context_switch_interrupt:
- la t0, rt_thread_switch_interrput_flag
+ la t0, rt_thread_switch_interrupt_flag
lw t1, 0(t0)
nop
bnez t1, _reswitch
nop
- li t1, 0x01 /* set rt_thread_switch_interrput_flag to 1 */
+ li t1, 0x01 /* set rt_thread_switch_interrupt_flag to 1 */
sw t1, 0(t0)
la t0, rt_interrupt_from_thread /* set rt_interrupt_from_thread */
sw a0, 0(t0)
@@ -110,10 +110,10 @@ mips_irq_handle: move sp, k0
/*
- * if rt_thread_switch_interrput_flag set, jump to
+ * if rt_thread_switch_interrupt_flag set, jump to
* rt_hw_context_switch_interrupt_do and don't return
*/
- la k0, rt_thread_switch_interrput_flag
+ la k0, rt_thread_switch_interrupt_flag
lw k1, 0(k0)
beqz k1, spurious_interrupt
nop
diff --git a/libcpu/mips/loongson/interrupt.c b/libcpu/mips/loongson/interrupt.c index 2d354269aa..20cc2f8b9b 100644 --- a/libcpu/mips/loongson/interrupt.c +++ b/libcpu/mips/loongson/interrupt.c @@ -18,7 +18,7 @@ extern rt_uint32_t rt_interrupt_nest;
rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread;
-rt_uint32_t rt_thread_switch_interrput_flag;
+rt_uint32_t rt_thread_switch_interrupt_flag;
static rt_isr_handler_t irq_handle_table[MAX_INTR];
void rt_interrupt_dispatch(void *ptreg);
@@ -50,7 +50,7 @@ void rt_hw_interrupt_init() rt_interrupt_nest = 0;
rt_interrupt_from_thread = 0;
rt_interrupt_to_thread = 0;
- rt_thread_switch_interrput_flag = 0;
+ rt_thread_switch_interrupt_flag = 0;
}
/**
|
