Ignore:
Timestamp:
Jan 4, 2005, 11:29:40 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
92049ab
Parents:
3d5f97f
Message:

2005-01-04 Joel Sherrill <joel@…>

  • ChangeLog?, startup/bspstart.c, tod/todcfg.c: Remove warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    r3d5f97f rab900436  
    248248  unsigned l2cr;
    249249#endif
    250   register unsigned char* intrStack;
     250  register uint32_t  intrStack;
     251  register uint32_t *intrStackPtr;
    251252  unsigned char *work_space_start;
    252253  ppc_cpu_id_t myCpu;
     
    308309   * some settings below...
    309310   */
    310   intrStack = ((unsigned char*) __rtems_end) +
    311     INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
     311  intrStack = ((uint32_t) __rtems_end) +
     312          INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
    312313
    313314  /* make sure it's properly aligned */
    314   (uint32_t)intrStack &= ~(CPU_STACK_ALIGNMENT-1);
     315  intrStack &= ~(CPU_STACK_ALIGNMENT-1);
    315316
    316317  /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */
    317   *((uint32_t*)intrStack) = 0;
    318 
    319   _write_SPRG1((unsigned int)intrStack);
     318  intrStackPtr = (uint32_t*) intrStack;
     319  *intrStackPtr = 0;
     320
     321  _write_SPRG1(intrStack);
    320322
    321323  /* signal them that we have fixed PR288 - eventually, this should go away */
Note: See TracChangeset for help on using the changeset viewer.