From 5a5bfea5881ebf39d21152ccf690b70226c9e4b3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 4 Jun 2008 14:55:01 +0000 Subject: [PATCH] 2008-06-04 Joel Sherrill * rtems/score/cpu.h: Use a constant for CPU_STACK_MINIMUM_SIZE so it can be used in cpp expressions. Using sizeof() requires actually compiling the file. --- cpukit/score/cpu/mips/ChangeLog | 6 ++++++ cpukit/score/cpu/mips/rtems/score/cpu.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/mips/ChangeLog b/cpukit/score/cpu/mips/ChangeLog index cbacb142da..da56fd86ea 100644 --- a/cpukit/score/cpu/mips/ChangeLog +++ b/cpukit/score/cpu/mips/ChangeLog @@ -1,3 +1,9 @@ +2008-06-04 Joel Sherrill + + * rtems/score/cpu.h: Use a constant for CPU_STACK_MINIMUM_SIZE so it + can be used in cpp expressions. Using sizeof() requires actually + compiling the file. + 2007-12-17 Joel Sherrill * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility. diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index 8c9a24fdc0..863866fc3d 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -673,7 +673,7 @@ extern unsigned int mips_interrupt_number_of_vectors; * that a "reasonable" small application should not have any problems. */ -#define CPU_STACK_MINIMUM_SIZE (2048*sizeof(uint32_t)) +#define CPU_STACK_MINIMUM_SIZE (8 * 1024) /*