Ignore:
Timestamp:
Feb 26, 2004, 5:23:54 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
22eda53c
Parents:
f4548e9
Message:

2004-02-26 Andreas Karlsson <andreas.karlsson@…>

  • cpu_asm.S: Close window while restoring interrupted task state which resulted in CWP corruption.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/sparc/cpu_asm.S

    rf4548e9 rf4fe0e9a  
    685685        nop
    686686
     687        /*
     688         *  We invoked _Thread_Dispatch in a state similar to the interrupted
     689         *  task.  In order to safely be able to tinker with the register
     690         *  windows and get the task back to its pre-interrupt state,
     691         *  we need to disable interrupts disabled so we can safely tinker
     692         *  with the register windowing.  In particular, the CWP in the PSR
     693         *  is fragile during this period. (See PR578.)
     694         */
     695        mov     2,%g1                           ! syscall (disable interrupts)
     696        ta      0                               ! syscall (disable interrupts)
     697
    687698        /*
    688699         *  The CWP in place at this point may be different from
Note: See TracChangeset for help on using the changeset viewer.