mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 20:56:59 +08:00
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>. Use PPC_MINIMUM_STACK_FRAME_SIZE instead of CPU_MINIMUM_STACK_FRAME_SIZE.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>.
|
||||
Use PPC_MINIMUM_STACK_FRAME_SIZE instead of
|
||||
CPU_MINIMUM_STACK_FRAME_SIZE.
|
||||
|
||||
2005-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Remove argument from RTEMS_PPC_EXCEPTIONS.
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <rtems/bspIo.h>
|
||||
#include <libcpu/cpuIdent.h>
|
||||
#include <libcpu/spr.h>
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
SPR_RW(SPRG0)
|
||||
SPR_RW(SPRG1)
|
||||
@@ -167,7 +168,7 @@ void bsp_start(void)
|
||||
* Initialize some SPRG registers related to irq handling
|
||||
*/
|
||||
|
||||
intrStack = (((unsigned char*)&intrStackPtr) - CPU_MINIMUM_STACK_FRAME_SIZE);
|
||||
intrStack = (((unsigned char*)&intrStackPtr) - PPC_MINIMUM_STACK_FRAME_SIZE);
|
||||
_write_SPRG1((unsigned int)intrStack);
|
||||
/* signal them that we have fixed PR288 - eventually, this should go away */
|
||||
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>.
|
||||
Use PPC_MINIMUM_STACK_FRAME_SIZE instead of
|
||||
CPU_MINIMUM_STACK_FRAME_SIZE.
|
||||
|
||||
2005-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Remove argument from RTEMS_PPC_EXCEPTIONS.
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <rtems/score/thread.h>
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
#include <rtems/bspIo.h>
|
||||
#include <libcpu/cpuIdent.h>
|
||||
#include <libcpu/spr.h>
|
||||
@@ -234,7 +236,7 @@ void bsp_start(void)
|
||||
* Initialize some SPRG registers related to irq handling
|
||||
*/
|
||||
|
||||
intrStack = (((unsigned char*)&intrStackPtr) - CPU_MINIMUM_STACK_FRAME_SIZE);
|
||||
intrStack = (((unsigned char*)&intrStackPtr) - PPC_MINIMUM_STACK_FRAME_SIZE);
|
||||
_write_SPRG1((unsigned int)intrStack);
|
||||
/* signal that we have fixed PR288 - eventually, this should go away */
|
||||
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>.
|
||||
Use PPC_MINIMUM_STACK_FRAME_SIZE instead of
|
||||
CPU_MINIMUM_STACK_FRAME_SIZE.
|
||||
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* start/start.S: include <rtems/powerpc/powerpc.h>.
|
||||
|
||||
@@ -32,7 +32,8 @@
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
/*#include <bsp/consoleIo.h>*/
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
#include <libcpu/spr.h> /* registers.h is included here */
|
||||
#include <bsp.h>
|
||||
#include <bsp/uart.h>
|
||||
@@ -43,7 +44,6 @@
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/bspException.h>
|
||||
|
||||
/* for RTEMS_VERSION :-( I dont like the preassembled string */
|
||||
#include <rtems/sptables.h>
|
||||
|
||||
#ifdef __RTEMS_APPLICATION__
|
||||
@@ -371,7 +371,7 @@ void bsp_start( void )
|
||||
* so there is no need to set it in r1 again... It is just for info
|
||||
* so that it can be printed without accessing R1.
|
||||
*/
|
||||
stack = ((unsigned char*) __rtems_end) + INIT_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
|
||||
stack = ((unsigned char*) __rtems_end) + INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
|
||||
|
||||
/* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */
|
||||
*((uint32_t *)stack) = 0;
|
||||
@@ -390,7 +390,7 @@ void bsp_start( void )
|
||||
* some settings below...
|
||||
*/
|
||||
intrStack = ((uint32_t) __rtems_end) +
|
||||
INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
|
||||
INIT_STACK_SIZE + INTR_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
|
||||
|
||||
/* make sure it's properly aligned */
|
||||
intrStack &= ~(CPU_STACK_ALIGNMENT-1);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>.
|
||||
Use PPC_MINIMUM_STACK_FRAME_SIZE instead of
|
||||
CPU_MINIMUM_STACK_FRAME_SIZE.
|
||||
|
||||
2005-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Remove argument from RTEMS_PPC_EXCEPTIONS.
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
#include <libcpu/cpuIdent.h>
|
||||
#include <libcpu/spr.h>
|
||||
|
||||
@@ -193,7 +195,7 @@ void bsp_start( void )
|
||||
* some settings below...
|
||||
*/
|
||||
intrStack = ((uint32_t) __rtems_end) +
|
||||
INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
|
||||
INIT_STACK_SIZE + INTR_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
|
||||
|
||||
/* make sure it's properly aligned */
|
||||
intrStack &= ~(CPU_STACK_ALIGNMENT-1);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>.
|
||||
Use PPC_MINIMUM_STACK_FRAME_SIZE instead of
|
||||
CPU_MINIMUM_STACK_FRAME_SIZE.
|
||||
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* start/start.S: include <rtems/powerpc/powerpc.h>.
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <libcpu/cpuIdent.h>
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/motorola.h>
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
extern void _return_to_ppcbug();
|
||||
extern unsigned long __rtems_end[];
|
||||
@@ -296,7 +297,7 @@ void bsp_start( void )
|
||||
* so that It can be printed without accessing R1.
|
||||
*/
|
||||
stack = ((unsigned char*) __rtems_end) +
|
||||
INIT_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
|
||||
INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
|
||||
|
||||
/* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */
|
||||
*((uint32_t*)stack) = 0;
|
||||
@@ -309,7 +310,7 @@ void bsp_start( void )
|
||||
* some settings below...
|
||||
*/
|
||||
intrStack = ((uint32_t) __rtems_end) +
|
||||
INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
|
||||
INIT_STACK_SIZE + INTR_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
|
||||
|
||||
/* make sure it's properly aligned */
|
||||
intrStack &= ~(CPU_STACK_ALIGNMENT-1);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: include <rtems/powerpc/powerpc.h>.
|
||||
Use PPC_MINIMUM_STACK_FRAME_SIZE instead of
|
||||
CPU_MINIMUM_STACK_FRAME_SIZE.
|
||||
|
||||
2005-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Remove argument from RTEMS_PPC_EXCEPTIONS.
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
#include <libcpu/cpuIdent.h>
|
||||
#include <libcpu/spr.h>
|
||||
@@ -155,7 +156,7 @@ void bsp_start(void)
|
||||
/*
|
||||
* Initialize some SPRG registers related to irq handling
|
||||
*/
|
||||
intrStack = (((unsigned char*)&intrStackPtr) - CPU_MINIMUM_STACK_FRAME_SIZE);
|
||||
intrStack = (((unsigned char*)&intrStackPtr) - PPC_MINIMUM_STACK_FRAME_SIZE);
|
||||
_write_SPRG1((unsigned int)intrStack);
|
||||
/* signal them that we have fixed PR288 - eventually, this should go away */
|
||||
_write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
|
||||
|
||||
Reference in New Issue
Block a user