summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:33 +0000
commit5023c87431b2c2f7b18251fa54028cd0b797fcb1 (patch)
tree29db4c1733f71b6e5ddccb0f78bbb8d0cb4861cf /c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-5023c87431b2c2f7b18251fa54028cd0b797fcb1.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* bsp_specs, clock/clock.c, include/bsp.h, irq/irq.c, startup/bspclean.c, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c49
1 files changed, 14 insertions, 35 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
index 7a0c81d026..f3ec7fe863 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
@@ -120,16 +120,7 @@ bd_t uboot_bdinfo_copy; /* will be overwritten with copy of bdinfo *
SPR_RW(SPRG0)
SPR_RW(SPRG1)
-/*
- * The original table from the application (in ROM) and our copy of it with
- * some changes. Configuration is defined in <confdefs.h>. Make sure that
- * our configuration tables are uninitialized so that they get allocated in
- * the .bss section (RAM).
- */
-extern rtems_configuration_table Configuration;
extern unsigned long intrStackPtr;
-rtems_configuration_table BSP_Configuration;
-char *rtems_progname;
/*
* Driver configuration parameters
@@ -305,30 +296,22 @@ void bsp_start(void)
#endif
/*
- * Allocate the memory for the RTEMS Work Space. This can come from
- * a variety of places: hard coded address, malloc'ed from outside
- * RTEMS world (e.g. simulator or primitive memory manager), or (as
- * typically done by stock BSPs) by subtracting the required amount
- * of work space from the last physical address on the CPU board.
- */
-
- /*
* Need to "allocate" the memory for the RTEMS Workspace and
* tell the RTEMS configuration where it is. This memory is
* not malloc'ed. It is just "pulled from the air".
*/
- BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
-
-
- /*
- BSP_Configuration.microseconds_per_tick = 1000;
- */
+ Configuration.work_space_start = (void *)&_WorkspaceBase;
/*
* Initalize RTEMS IRQ system
*/
BSP_rtems_irq_mng_init(0);
+ {
+ void BSP_initialize_IRQ_Timing(void);
+ BSP_initialize_IRQ_Timing();
+ }
+
#ifdef SHOW_MORE_INIT_SETTINGS
printk("Exit from bspstart\n");
#endif
@@ -344,17 +327,13 @@ void bsp_start(void)
* defined in HID0. HID0 is set during starup in start.S.
*
*/
-Thread _Thread_Idle_body(uint32_t ignored )
- {
-
- for(;;)
- {
-
- asm volatile("mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0");
-
- }
-
- return 0;
-
+Thread _Thread_Idle_body(uint32_t ignored)
+{
+ for(;;) {
+ asm volatile(
+ "mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0"
+ );
}
+ return 0;
+}