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

update kernels

File:
1 edited

Legend:

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

    r31632 r31884  
    3434#include <asm/dsp.h>
    3535#include <asm/fpu.h>
     36#include <asm/irq.h>
    3637#include <asm/msa.h>
    3738#include <asm/pgtable.h>
     
    557558                           unsigned long pc, unsigned long *ra)
    558559{
    559         unsigned long stack_page = (unsigned long)task_stack_page(task);
     560        unsigned long stack_page = 0;
     561        int cpu;
     562
     563        for_each_possible_cpu(cpu) {
     564                if (on_irq_stack(cpu, *sp)) {
     565                        stack_page = (unsigned long)irq_stack[cpu];
     566                        break;
     567                }
     568        }
     569
     570        if (!stack_page)
     571                stack_page = (unsigned long)task_stack_page(task);
     572
    560573        return unwind_stack_by_address(stack_page, sp, pc, ra);
    561574}
Note: See TracChangeset for help on using the changeset viewer.