diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-03-05 21:17:55 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-03-05 21:17:55 +0000 |
commit | 05b0c8a6dd3e9e35623934d33f5b6fba891a4258 (patch) | |
tree | 1555cdda67aa6229405f217d2cfe4f12f2d97c36 /c/src/lib/libbsp/powerpc/mvme3100/startup | |
parent | 2009-03-05 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-05b0c8a6dd3e9e35623934d33f5b6fba891a4258.tar.bz2 |
2009-03-05 Till Straumann <strauman@slac.stanford.edu>
* include/bsp.h, start/start.S, startup/bspstart.c:
removed BSP_INIT_STACK_SIZE -- this BSP now also uses
__stack defined by the linker script for the initial
stack.
Removed legacy code (inherited from old mvme2307 BSP
but not relevant to this one) that tested trapping
into PPCBug.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme3100/startup')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c index 60f59a1bf0..a6e8f9ad29 100644 --- a/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c @@ -50,8 +50,6 @@ extern unsigned long __rtems_end[]; extern void BSP_vme_config(void); -SPR_RW(SPRG1) - /* * Copy Additional boot param passed by boot loader */ @@ -263,10 +261,6 @@ VpdBufRec vpdData [] = { * so that It can be printed without accessing R1. */ asm volatile("mr %0, 1":"=r"(stack)); -#if 0 - stack = ((unsigned char*) __rtems_end) + - INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE; -#endif /* tag the bottom */ *((uint32_t*)stack) = 0; @@ -274,7 +268,7 @@ VpdBufRec vpdData [] = { /* * Initialize the interrupt related settings. */ - intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE; + intrStackStart = (uint32_t) __rtems_end; intrStackSize = rtems_configuration_get_interrupt_stack_size(); /* @@ -375,29 +369,6 @@ VpdBufRec vpdData [] = { } #endif -#ifdef TEST_RAW_EXCEPTION_CODE - printk("Testing exception handling Part 1\n"); - /* - * Cause a software exception - */ - __asm__ __volatile ("sc"); - /* - * Check we can still catch exceptions and return coorectly. - */ - printk("Testing exception handling Part 2\n"); - __asm__ __volatile ("sc"); - - /* - * Somehow doing the above seems to clobber SPRG0 on the mvme2100. The - * interrupt disable mask is stored in SPRG0. Is this a problem? - */ - ppc_interrupt_set_disable_mask( PPC_INTERRUPT_DISABLE_MASK_DEFAULT); - -#endif - -/* See above */ -#warning The interrupt disable mask is now stored in SPRG0, please verify that this is compatible to this BSP (see also bootcard.c). - if ( (chpt = strstr(BSP_commandline_string,"MEMSZ=")) ) { char *endp; uint32_t sz; |