mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
* start/preload.S, include/bsp.h, vectors/exceptionhandler.c, startup/bspstart.c: Misc. adaptations to rtems-4.7.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* start/preload.S, include/bsp.h, vectors/exceptionhandler.c,
|
||||||
|
startup/bspstart.c: Misc. adaptations to rtems-4.7.
|
||||||
|
|
||||||
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
* configure: Remove (Bogus).
|
* configure: Remove (Bogus).
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
#include <bspopts.h>
|
#include <bspopts.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <console.h>
|
#include <rtems/console.h>
|
||||||
#include <clockdrv.h>
|
#include <rtems/clockdrv.h>
|
||||||
#include <libcpu/io.h>
|
#include <libcpu/io.h>
|
||||||
#include <bsp/vectors.h>
|
#include <bsp/vectors.h>
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/score/cpu.h>
|
#include <rtems/score/cpu.h>
|
||||||
#include <asm.h>
|
#include <rtems/asm.h>
|
||||||
|
|
||||||
/* Note that major modifications may be needed
|
/* Note that major modifications may be needed
|
||||||
* if DESTINATION_ADDR is not 0
|
* if DESTINATION_ADDR is not 0
|
||||||
|
|||||||
@@ -61,8 +61,8 @@
|
|||||||
/* there is no public Workspace_Free() variant :-( */
|
/* there is no public Workspace_Free() variant :-( */
|
||||||
#include <rtems/score/wkspace.h>
|
#include <rtems/score/wkspace.h>
|
||||||
|
|
||||||
rtems_unsigned32
|
uint32_t
|
||||||
_bsp_sbrk_init(rtems_unsigned32 heap_start, rtems_unsigned32 *heap_size_p);
|
_bsp_sbrk_init(uint32_t heap_start, uint32_t *heap_size_p);
|
||||||
|
|
||||||
/* provide access to the command line parameters */
|
/* provide access to the command line parameters */
|
||||||
char *BSP_commandline_string = 0;
|
char *BSP_commandline_string = 0;
|
||||||
@@ -134,7 +134,7 @@ static unsigned long
|
|||||||
heapStart(void)
|
heapStart(void)
|
||||||
{
|
{
|
||||||
unsigned long rval;
|
unsigned long rval;
|
||||||
rval = ((rtems_unsigned32) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE;
|
rval = ((uint32_t) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE;
|
||||||
if (rval & (CPU_ALIGNMENT-1))
|
if (rval & (CPU_ALIGNMENT-1))
|
||||||
rval = (rval + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
|
rval = (rval + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
|
||||||
return rval;
|
return rval;
|
||||||
@@ -189,10 +189,10 @@ extern void bsp_libc_init( void *, unsigned32, int );
|
|||||||
|
|
||||||
void bsp_pretasking_hook(void)
|
void bsp_pretasking_hook(void)
|
||||||
{
|
{
|
||||||
rtems_unsigned32 heap_start=heapStart();
|
uint32_t heap_start=heapStart();
|
||||||
rtems_unsigned32 heap_size,heap_sbrk_spared;
|
uint32_t heap_size,heap_sbrk_spared;
|
||||||
char *buf;
|
char *buf;
|
||||||
extern rtems_unsigned32 _bsp_sbrk_init(rtems_unsigned32, rtems_unsigned32*);
|
extern uint32_t _bsp_sbrk_init(uint32_t, uint32_t*);
|
||||||
|
|
||||||
heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size;
|
heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size;
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ volatile BSP_ExceptionExtension test;
|
|||||||
void
|
void
|
||||||
BSP_exceptionHandler(BSP_Exception_frame* excPtr)
|
BSP_exceptionHandler(BSP_Exception_frame* excPtr)
|
||||||
{
|
{
|
||||||
rtems_unsigned32 note;
|
uint32_t note;
|
||||||
BSP_ExceptionExtension ext=0;
|
BSP_ExceptionExtension ext=0;
|
||||||
rtems_id id=0;
|
rtems_id id=0;
|
||||||
int recoverable = 0;
|
int recoverable = 0;
|
||||||
@@ -147,8 +147,6 @@ int quiet=0;
|
|||||||
printk(" TEA");
|
printk(" TEA");
|
||||||
}
|
}
|
||||||
if (excPtr->EXC_SRR1 & (SRR1_MCP_EXC)) {
|
if (excPtr->EXC_SRR1 & (SRR1_MCP_EXC)) {
|
||||||
unsigned char c1,c2;
|
|
||||||
unsigned int l;
|
|
||||||
unsigned long gerr;
|
unsigned long gerr;
|
||||||
|
|
||||||
if (!quiet) printk(" MCP\n");
|
if (!quiet) printk(" MCP\n");
|
||||||
@@ -180,8 +178,8 @@ int quiet=0;
|
|||||||
if (id) {
|
if (id) {
|
||||||
/* if there's a highlevel hook, install it */
|
/* if there's a highlevel hook, install it */
|
||||||
if (ext && ext->highlevelHook) {
|
if (ext && ext->highlevelHook) {
|
||||||
excPtr->EXC_SRR0 = (rtems_unsigned32)ext->highlevelHook;
|
excPtr->EXC_SRR0 = (uint32_t)ext->highlevelHook;
|
||||||
excPtr->GPR3 = (rtems_unsigned32)ext;
|
excPtr->GPR3 = (uint32_t)ext;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (excPtr->EXC_SRR1 & MSR_FP) {
|
if (excPtr->EXC_SRR1 & MSR_FP) {
|
||||||
|
|||||||
Reference in New Issue
Block a user