forked from Imagelibrary/rtems
2001-04-16 Joel Sherrill <joel@OARcorp.com>
* start/start.S, startup/bspstart.c, startup/linkcmds: Modifications made with Gregory Menke <gregory.menke@gsfc.nasa.gov> as he debugged this BSP using a logic analyzer.
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
#include <rtems/libcsupport.h>
|
#include <rtems/libcsupport.h>
|
||||||
#include <libcpu/mongoose-v.h>
|
#include <libcpu/mongoose-v.h>
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The original table from the application and our copy of it with
|
* The original table from the application and our copy of it with
|
||||||
* some changes.
|
* some changes.
|
||||||
@@ -71,7 +70,6 @@ void bsp_pretasking_hook(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bsp_start
|
* bsp_start
|
||||||
@@ -95,10 +93,20 @@ void bsp_start( void )
|
|||||||
|
|
||||||
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||||
|
|
||||||
MONGOOSEV_WRITE( MONGOOSEV_PERIPHERAL_FUNCTION_INTERRUPT_CAUSE_REGISTER, 0 );
|
/*mips_set_sr( 0xff00 ); all interrupts unmasked but globally off */
|
||||||
mips_set_sr( 0xff00 ); /* all interrupts unmasked but globally off */
|
|
||||||
/* depend on the IRC to take care of things */
|
/* depend on the IRC to take care of things */
|
||||||
|
|
||||||
|
MONGOOSEV_WRITE( MONGOOSEV_PERIPHERAL_FUNCTION_INTERRUPT_CAUSE_REGISTER, 0 );
|
||||||
|
MONGOOSEV_WRITE( MONGOOSEV_PERIPHERAL_FUNCTION_INTERRUPT_MASK_REGISTER, 0 );
|
||||||
|
|
||||||
|
/*
|
||||||
|
mips_set_sr( (SR_CU0 | SR_CU1 | SR_IBIT1 | SR_IBIT2 | SR_IBIT3 | SR_IBIT4 | SR_IBIT6 | SR_IBIT8) );
|
||||||
|
*/
|
||||||
|
mips_set_sr( (SR_CU0 | SR_CU1 | SR_IBIT1 | SR_IBIT2) );
|
||||||
|
|
||||||
mips_install_isr_entries();
|
mips_install_isr_entries();
|
||||||
|
|
||||||
|
MONGOOSEV_WRITE( MONGOOSEV_PERIPHERAL_FUNCTION_INTERRUPT_CAUSE_REGISTER, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX */
|
/* XXX */
|
||||||
|
|||||||
@@ -16,7 +16,13 @@ ClockRate = DEFINED(ClockRate) ? ClockRate : 12000000;
|
|||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
. = 0x80000000;
|
/*
|
||||||
|
Ken's response is correct. Locate it at 0x80020000 or higher. The PMON
|
||||||
|
data segment after the exception vectors and below 0x80020000,
|
||||||
|
|
||||||
|
. = 0x80020000;
|
||||||
|
*/
|
||||||
|
. = 0x80020000;
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
_ftext = . ;
|
_ftext = . ;
|
||||||
|
|||||||
Reference in New Issue
Block a user