From f7d1ca323b4957e8ee7cc2425df9e2459594bddc Mon Sep 17 00:00:00 2001 From: dzzxzz Date: Fri, 9 Sep 2011 07:30:39 +0000 Subject: fixed a spelling error rt_thread_switch_interrput_flag -> rt_thread_switch_interrupt_flag git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1704 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/mips/loongson_1b/context_gcc.S | 10 +++++----- libcpu/mips/loongson_1b/interrupt.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libcpu/mips') diff --git a/libcpu/mips/loongson_1b/context_gcc.S b/libcpu/mips/loongson_1b/context_gcc.S index a3ae34dc46..e6f710e048 100644 --- a/libcpu/mips/loongson_1b/context_gcc.S +++ b/libcpu/mips/loongson_1b/context_gcc.S @@ -67,17 +67,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) @@ -117,10 +117,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_1b/interrupt.c b/libcpu/mips/loongson_1b/interrupt.c index 594eeb33cb..14dc820190 100644 --- a/libcpu/mips/loongson_1b/interrupt.c +++ b/libcpu/mips/loongson_1b/interrupt.c @@ -19,7 +19,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); @@ -61,7 +61,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; } /** -- cgit v1.3.1