summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-17 04:23:18 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-17 04:23:18 +0000
commitcc043dc3d24e7ea5b17eb2e2930e6f7c1d7adde9 (patch)
tree17603d638c57edf0e1161ab5ff497eb066527915 /c/src/lib/libcpu
parent(CPU_STACK_MINIMUM_SIZE, CPU_ALIGNMENT, CPU_HEAP_ALIGNMENT, CPU_PARTITION_ALI... (diff)
downloadrtems-cc043dc3d24e7ea5b17eb2e2930e6f7c1d7adde9.tar.bz2
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* new-exceptions/cpu.c, rtems/powerpc/powerpc.h: Remove CPU_MINIMUM_STACK_FRAME_SIZE. Use PPC_MINIMUM_STACK_FRAME_SIZE instead. * rtems/powerpc/powerpc.h: Add PPC_MINIMUM_STACK_FRAME_SIZE.
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r--c/src/lib/libcpu/powerpc/ChangeLog7
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/cpu.c5
-rw-r--r--c/src/lib/libcpu/powerpc/old-exceptions/cpu.c5
-rw-r--r--c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h3
4 files changed, 12 insertions, 8 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog
index 1243b826db..468cbf8185 100644
--- a/c/src/lib/libcpu/powerpc/ChangeLog
+++ b/c/src/lib/libcpu/powerpc/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
+
+ * new-exceptions/cpu.c, rtems/powerpc/powerpc.h:
+ Remove CPU_MINIMUM_STACK_FRAME_SIZE.
+ Use PPC_MINIMUM_STACK_FRAME_SIZE instead.
+ * rtems/powerpc/powerpc.h: Add PPC_MINIMUM_STACK_FRAME_SIZE.
+
2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org>
* new-exceptions/cpu.c: Add CPU_MINIMUM_STACK_FRAME_SIZE.
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
index 9e87acd5e0..8151ce15e9 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c
@@ -65,9 +65,6 @@ void _CPU_Initialize(
* _CPU_Context_Initialize
*/
-/* PPC_ABI_SVR4 or PPC_ABI_EABI */
-#define CPU_MINIMUM_STACK_FRAME_SIZE 8
-
void _CPU_Context_Initialize(
Context_Control *the_context,
uint32_t *stack_base,
@@ -80,7 +77,7 @@ void _CPU_Context_Initialize(
uint32_t msr_value;
uint32_t sp;
- sp = (uint32_t)stack_base + size - CPU_MINIMUM_STACK_FRAME_SIZE;
+ sp = (uint32_t)stack_base + size - PPC_MINIMUM_STACK_FRAME_SIZE;
sp &= ~(CPU_STACK_ALIGNMENT-1);
diff --git a/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
index 7fe9437df6..5ce8f452bb 100644
--- a/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
+++ b/c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
@@ -220,9 +220,6 @@ uint32_t _CPU_ISR_Get_level( void )
* _CPU_Context_Initialize
*/
-/* PPC_ABI_SVR4 or PPC_ABI_EABI */
-#define CPU_MINIMUM_STACK_FRAME_SIZE 8
-
void _CPU_Context_Initialize(
Context_Control *the_context,
uint32_t *stack_base,
@@ -235,7 +232,7 @@ void _CPU_Context_Initialize(
uint32_t msr_value;
uint32_t sp;
- sp = (uint32_t)stack_base + size - CPU_MINIMUM_STACK_FRAME_SIZE;
+ sp = (uint32_t)stack_base + size - PPC_MINIMUM_STACK_FRAME_SIZE;
*((uint32_t*)sp) = 0;
the_context->gpr1 = sp;
diff --git a/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h b/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
index c8765579ed..753fc14931 100644
--- a/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
+++ b/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
@@ -701,6 +701,9 @@ extern "C" {
#define PPC_INIT_FPSCR 0x000000f8
+
+#define PPC_MINIMUM_STACK_FRAME_SIZE PPC_STACK_ALIGNMENT
+
#ifdef __cplusplus
}
#endif