Changeset 8930426 in rtems


Ignore:
Timestamp:
Jul 18, 2003, 5:21:54 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
b997f52
Parents:
adc5f630
Message:

2003-07-18 Till Straumann <strauman@…>

PR 288/rtems

  • startup/bspstart.c: _ISR_Nest_level is now properly maintained.
Location:
c/src/lib/libbsp/powerpc/mpc8260ads
Files:
2 edited

Legend:

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

    radc5f630 r8930426  
     12003-07-18      Till Straumann <strauman@slac.stanford.edu>
     2
     3        PR 288/rtems
     4        * startup/bspstart.c: _ISR_Nest_level is now properly maintained.
     5
    162003-03-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c

    radc5f630 r8930426  
    4848#include <rtems/bspIo.h>
    4949#include <libcpu/cpuIdent.h>
     50#include <libcpu/spr.h>
    5051
    5152#include <string.h>
     
    5657
    5758
     59SPR_RW(SPRG0)
     60SPR_RW(SPRG1)
    5861
    5962/*
     
    220223  ppc_cpu_revision_t myCpuRevision;
    221224  register unsigned char* intrStack;
    222   register unsigned int intrNestingLevel = 0;
    223225
    224226
     
    249251
    250252  intrStack = (((unsigned char*)&intrStackPtr) - CPU_MINIMUM_STACK_FRAME_SIZE);
    251   asm volatile ("mtspr  273, %0" : "=r" (intrStack) : "0" (intrStack));
    252   asm volatile ("mtspr  272, %0" : "=r" (intrNestingLevel) : "0" (intrNestingLevel));
     253  _write_SPRG1((unsigned int)intrStack);
     254  /* signal that we have fixed PR288 - eventually, this should go away */
     255  _write_SPRG0(PPC_BSP_HAS_FIXED_PR288);
    253256
    254257/*
Note: See TracChangeset for help on using the changeset viewer.