Ignore:
Timestamp:
Apr 18, 2017, 8:47:31 AM (7 days ago)
Author:
brainslayer
Message:

update kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/arch/mips/kernel/process.c

    r31632 r31884  
    3333#include <asm/dsp.h>
    3434#include <asm/fpu.h>
     35#include <asm/irq.h>
    3536#include <asm/msa.h>
    3637#include <asm/pgtable.h>
     
    553554                           unsigned long pc, unsigned long *ra)
    554555{
    555         unsigned long stack_page = (unsigned long)task_stack_page(task);
     556        unsigned long stack_page = 0;
     557        int cpu;
     558
     559        for_each_possible_cpu(cpu) {
     560                if (on_irq_stack(cpu, *sp)) {
     561                        stack_page = (unsigned long)irq_stack[cpu];
     562                        break;
     563                }
     564        }
     565
     566        if (!stack_page)
     567                stack_page = (unsigned long)task_stack_page(task);
     568
    556569        return unwind_stack_by_address(stack_page, sp, pc, ra);
    557570}
Note: See TracChangeset for help on using the changeset viewer.