Changeset 234e509f in rtems


Ignore:
Timestamp:
Jan 26, 2005, 12:27:14 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
771af46f
Parents:
9d7259a7
Message:

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

  • irq/irq.c, startup/bspstart.c: Now compiles with gcc 4.x.
Location:
c/src/lib/libbsp/powerpc/mvme5500
Files:
3 edited

Legend:

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

    r9d7259a7 r234e509f  
     12005-01-26      Joel Sherrill <joel@OARcorp.com>
     2
     3        * irq/irq.c, startup/bspstart.c: Now compiles with gcc 4.x.
     4
    152005-01-22      Ralf Corsepius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/powerpc/mvme5500/irq/irq.c

    r9d7259a7 r234e509f  
    446446  register unsigned msr;
    447447  register unsigned new_msr;
    448   register unsigned mainCause[2], selectCause;
     448  unsigned mainCause[2];
     449  register unsigned selectCause;
    449450  register unsigned oldMask[2]={0,0};
    450451  unsigned i, regNum, irq, bitNum, startIrqNum=0;
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    r9d7259a7 r234e509f  
    340340  unsigned l3cr;
    341341#endif
    342   register unsigned char* intrStack;
     342  register uint32_t  intrStack;
     343  register uint32_t *intrStackPtr;
    343344  unsigned char *work_space_start;
    344345  ppc_cpu_id_t myCpu;
     
    389390   * some settings below...
    390391   */
    391   intrStack = ((unsigned char*) __rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
     392  intrStack = ((uint32_t) __rtems_end) +
     393          INIT_STACK_SIZE + INTR_STACK_SIZE - CPU_MINIMUM_STACK_FRAME_SIZE;
    392394
    393395  /* make sure it's properly aligned */
    394   (uint32_t)intrStack &= ~(CPU_STACK_ALIGNMENT-1);
     396  intrStack &= ~(CPU_STACK_ALIGNMENT-1);
    395397
    396398  /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */
    397   *((uint32_t *)intrStack) = 0;
    398 
    399   _write_SPRG1((unsigned int)intrStack);
     399  intrStackPtr = (uint32_t*) intrStack;
     400  *intrStackPtr = 0;
     401
     402  _write_SPRG1(intrStack);
     403
    400404  _write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
    401405
Note: See TracChangeset for help on using the changeset viewer.