Changeset 80933ab3 in rtems


Ignore:
Timestamp:
Oct 9, 2017, 5:38:15 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
c0623a99
Parents:
6489bcb
Message:

bsps/powerpc: Fix robust thread dispatch again

Use the saved MSR to account for FPU and AltiVec? settings.

Update #2811.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_hdl.c

    r6489bcb r80933ab3  
    103103
    104104  while (cpu_self->dispatch_necessary) {
    105     uint32_t msr;
    106105    rtems_interrupt_level level;
    107106
    108107    cpu_self->isr_dispatch_disable = 1;
    109108    cpu_self->thread_dispatch_disable_level = 1;
    110     msr = ppc_machine_state_register();
    111     _Thread_Do_dispatch(cpu_self, msr | MSR_EE);
     109    _Thread_Do_dispatch(cpu_self, frame->EXC_SRR1);
    112110    rtems_interrupt_local_disable(level);
    113111    (void) level;
Note: See TracChangeset for help on using the changeset viewer.