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.4/arch/mips/include/asm/irq.h

    r28606 r31884  
    1717
    1818#include <irq.h>
     19
     20#define IRQ_STACK_SIZE                  THREAD_SIZE
     21
     22extern void *irq_stack[NR_CPUS];
     23
     24static inline bool on_irq_stack(int cpu, unsigned long sp)
     25{
     26        unsigned long low = (unsigned long)irq_stack[cpu];
     27        unsigned long high = low + IRQ_STACK_SIZE;
     28
     29        return (low <= sp && sp <= high);
     30}
    1931
    2032#ifdef CONFIG_I8259
Note: See TracChangeset for help on using the changeset viewer.