Changeset 05b0c8a in rtems


Ignore:
Timestamp:
Mar 5, 2009, 9:17:55 PM (11 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, master
Children:
ac4dd0b
Parents:
0f2852d
Message:

2009-03-05 Till Straumann <strauman@…>

  • 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.
Location:
c/src/lib/libbsp/powerpc/mvme3100
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mvme3100/ChangeLog

    r0f2852d r05b0c8a  
     12009-03-05      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * include/bsp.h, start/start.S, startup/bspstart.c:
     4        removed BSP_INIT_STACK_SIZE -- this BSP now also uses
     5        __stack defined by the linker script for the initial
     6        stack.
     7        Removed legacy code (inherited from old mvme2307 BSP
     8        but not relevant to this one) that tested trapping
     9        into PPCBug.
     10
    1112009-03-05      Till Straumann <strauman@slac.stanford.edu>
    212
  • c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h

    r0f2852d r05b0c8a  
    319319#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsec_attach
    320320
    321 /*
    322  * system init stack and soft ir stack size
    323  */
    324 #define BSP_INIT_STACK_SIZE 0x1000
    325 
    326321#ifdef __cplusplus
    327322}
  • c/src/lib/libbsp/powerpc/mvme3100/start/start.S

    r0f2852d r05b0c8a  
    7474        mr      r7,r27
    7575        bl      save_boot_params
    76         /*
    77          * stack = &__rtems_end + 4096
    78          */
    79         addis   r9,r0, __rtems_end+(4096-PPC_MINIMUM_STACK_FRAME_SIZE)@ha
    80         addi    r9,r9, __rtems_end+(4096-PPC_MINIMUM_STACK_FRAME_SIZE)@l
     76        addis   r9,r0, (__stack-PPC_MINIMUM_STACK_FRAME_SIZE)@ha
     77        addi    r9,r9, (__stack-PPC_MINIMUM_STACK_FRAME_SIZE)@l
    8178        /* align down to 16-bytes */
    8279        li  r5, (CPU_STACK_ALIGNMENT - 1)
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    r0f2852d r05b0c8a  
    5151extern void          BSP_vme_config(void);
    5252
    53 SPR_RW(SPRG1)
    54 
    5553/*
    5654 * Copy Additional boot param passed by boot loader
     
    264262         */
    265263        asm volatile("mr %0, 1":"=r"(stack));
    266 #if 0
    267         stack = ((unsigned char*) __rtems_end) +
    268                 INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE;
    269 #endif
    270264
    271265        /* tag the bottom */
     
    275269         * Initialize the interrupt related settings.
    276270         */
    277         intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE;
     271        intrStackStart = (uint32_t) __rtems_end;
    278272        intrStackSize = rtems_configuration_get_interrupt_stack_size();
    279273
     
    376370#endif
    377371
    378 #ifdef TEST_RAW_EXCEPTION_CODE
    379         printk("Testing exception handling Part 1\n");
    380         /*
    381          * Cause a software exception
    382          */
    383         __asm__ __volatile ("sc");
    384         /*
    385          * Check we can still catch exceptions and return coorectly.
    386          */
    387         printk("Testing exception handling Part 2\n");
    388         __asm__ __volatile ("sc");
    389 
    390         /*
    391          * Somehow doing the above seems to clobber SPRG0 on the mvme2100.  The
    392          * interrupt disable mask is stored in SPRG0. Is this a problem?
    393          */
    394         ppc_interrupt_set_disable_mask( PPC_INTERRUPT_DISABLE_MASK_DEFAULT);
    395 
    396 #endif
    397 
    398 /* See above */
    399 #warning The interrupt disable mask is now stored in SPRG0, please verify that this is compatible to this BSP (see also bootcard.c).
    400 
    401372        if ( (chpt = strstr(BSP_commandline_string,"MEMSZ=")) ) {
    402373                char            *endp;
Note: See TracChangeset for help on using the changeset viewer.