Changeset a32835a3 in rtems for cpukit/score/cpu/sparc/cpu.c


Ignore:
Timestamp:
May 10, 2007, 6:40:49 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
45d406f8
Parents:
93c2b41
Message:

2007-05-10 Joel Sherrill <joel.sherrill@…>

PR 1237/rtems

  • cpu.c, cpu_asm.S, rtems/score/cpu.h: Add logic to prevent stack creep when interrupts occur at a sufficient rate that the interrupted thread never gets to clean its stack. This patch ensures that an interrupted thread will not nest ISR dispatches on its stack.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/sparc/cpu.c

    r93c2b41 ra32835a3  
    7272
    7373  _CPU_Table = *cpu_table;
     74
     75  /*
     76   *  Since no tasks have been created yet and no interrupts have occurred,
     77   *  there is no way that the currently executing thread can have an
     78   *  _ISR_Dispatch stack frame on its stack.
     79   */
     80  _CPU_ISR_Dispatch_disable = 0;
    7481}
    7582
     
    328335#endif
    329336    the_context->psr = tmp_psr;
    330 }
     337
     338  /*
     339   *  Since THIS thread is being created, there is no way that THIS
     340   *  thread can have an _ISR_Dispatch stack frame on its stack.
     341   */
     342    the_context->isr_dispatch_disable = 0;
     343}
Note: See TracChangeset for help on using the changeset viewer.