From e38d16d17a782b50fde4917cf47eda27205f38e1 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 17 Mar 2007 22:46:37 +0000 Subject: [PATCH] Fix typo in name git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@86 42af7a65-404d-4744-a932-0658087f49c3 --- arch/c5471/include/irq.h | 8 ++++---- arch/c5471/src/up_copystate.c | 2 +- arch/c5471/src/up_sigdeliver.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/c5471/include/irq.h b/arch/c5471/include/irq.h index 051848ba50..b5c810cbe1 100644 --- a/arch/c5471/include/irq.h +++ b/arch/c5471/include/irq.h @@ -78,8 +78,8 @@ #define REG_R15 (15) #define REG_CPSR (16) -#define XCPTCONTEST_REGS (17) -#define XCPTCONTEXT_SIZE (4 * XCPTCONTEST_REGS) +#define XCPTCONTEXT_REGS (17) +#define XCPTCONTEXT_SIZE (4 * XCPTCONTEXT_REGS) #define REG_A1 REG_R0 #define REG_A2 REG_R1 @@ -144,7 +144,7 @@ *--- * 5 (XCPTCONTEXT_IRQ_REGS) * - * For a total of 17 (XCPTCONTEST_REGS) + * For a total of 17 (XCPTCONTEXT_REGS) */ #ifndef __ASSEMBLY__ @@ -165,7 +165,7 @@ struct xcptcontext /* Register save area */ - uint32 regs[XCPTCONTEST_REGS]; + uint32 regs[XCPTCONTEXT_REGS]; }; #endif diff --git a/arch/c5471/src/up_copystate.c b/arch/c5471/src/up_copystate.c index 8e8586699b..bd9db8161d 100644 --- a/arch/c5471/src/up_copystate.c +++ b/arch/c5471/src/up_copystate.c @@ -67,7 +67,7 @@ void up_copystate(uint32 *dest, uint32 *src) { int i; - for (i = 0; i < XCPTCONTEST_REGS; i++) + for (i = 0; i < XCPTCONTEXT_REGS; i++) { *dest++ = *src++; } diff --git a/arch/c5471/src/up_sigdeliver.c b/arch/c5471/src/up_sigdeliver.c index d19881c53b..528a2864e2 100644 --- a/arch/c5471/src/up_sigdeliver.c +++ b/arch/c5471/src/up_sigdeliver.c @@ -77,7 +77,7 @@ void up_sigdeliver(void) { _TCB *rtcb = (_TCB*)g_readytorun.head; - uint32 regs[XCPTCONTEST_REGS]; + uint32 regs[XCPTCONTEXT_REGS]; sig_deliver_t sigdeliver; up_ledon(LED_SIGNAL);