Changeset d60239f in rtems


Ignore:
Timestamp:
Jul 16, 2008, 9:57:55 PM (11 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
6ce3f7b
Parents:
3d28361d
Message:

2008-07-16 Till Straumann <strauman@…>

  • new-exceptions/cpu.c: use ppc_interrupt_get_disable_mask() to determine which bits to set/clear from _CPU_Context_Initialize().
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r3d28361d rd60239f  
     12008-07-16      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * new-exceptions/cpu.c: use ppc_interrupt_get_disable_mask()
     4        to determine which bits to set/clear from _CPU_Context_Initialize().
     5
    162008-07-16      Till Straumann <strauman@slac.stanford.edu>
    27
  • c/src/lib/libcpu/powerpc/new-exceptions/cpu.c

    r3d28361d rd60239f  
    5656 */
    5757
     58
    5859void _CPU_Context_Initialize(
    5960  Context_Control  *the_context,
     
    7778  _CPU_MSR_GET( msr_value );
    7879
     80  /*
     81   * Setting the interrupt mask here is not strictly necessary
     82   * since the IRQ level will be established from _Thread_Handler()
     83   * again, as soon as the task starts execution.
     84   * Because we have to establish a defined state anyways we
     85   * can as well leave this code here.
     86   * I.e., simply (and unconditionally) saying
     87   *
     88   *   msr_value &= ~ppc_interrupt_get_disable_mask();
     89   *
     90   * would be an alternative.
     91   */
     92
    7993  if (!(new_level & CPU_MODES_INTERRUPT_MASK)) {
    80     msr_value |= MSR_EE;
     94    msr_value |= ppc_interrupt_get_disable_mask();
    8195  }
    8296  else {
    83     msr_value &= ~MSR_EE;
     97    msr_value &= ~ppc_interrupt_get_disable_mask();
    8498  }
    8599
Note: See TracChangeset for help on using the changeset viewer.