cregit-Linux how code gets into the kernel

Release 4.10 arch/mips/kernel/irq.c

Directory: arch/mips/kernel
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Code to handle x86 style IRQs plus some generic interrupt stuff.
 *
 * Copyright (C) 1992 Linus Torvalds
 * Copyright (C) 1994 - 2000 Ralf Baechle
 */
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel_stat.h>
#include <linux/proc_fs.h>
#include <linux/mm.h>
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/kallsyms.h>
#include <linux/kgdb.h>
#include <linux/ftrace.h>

#include <linux/atomic.h>
#include <linux/uaccess.h>

/*
 * 'what should we do if we get a hw irq event on an illegal vector'.
 * each architecture has to answer this themselves.
 */

void ack_bad_irq(unsigned int irq) { printk("unexpected IRQ # %d\n", irq); }

Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle16100.00%2100.00%
Total16100.00%2100.00%

atomic_t irq_err_count;
int arch_show_interrupts(struct seq_file *p, int prec) { seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count)); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
pre-gitpre-git1236.36%233.33%
linus torvaldslinus torvalds1030.30%233.33%
thomas gleixnerthomas gleixner618.18%116.67%
ralf baechleralf baechle515.15%116.67%
Total33100.00%6100.00%


asmlinkage void spurious_interrupt(void) { atomic_inc(&irq_err_count); }

Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle14100.00%2100.00%
Total14100.00%2100.00%


void __init init_IRQ(void) { int i; for (i = 0; i < NR_IRQS; i++) irq_set_noprobe(i); if (cpu_has_veic) clear_c0_status(ST0_IM); arch_init_irq(); }

Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle2868.29%350.00%
paul burtonpaul burton921.95%116.67%
pre-gitpre-git37.32%116.67%
thomas gleixnerthomas gleixner12.44%116.67%
Total41100.00%6100.00%

#ifdef CONFIG_DEBUG_STACKOVERFLOW
static inline void check_stack_overflow(void) { unsigned long sp; __asm__ __volatile__("move %0, $sp" : "=r" (sp)); sp &= THREAD_MASK; /* * Check for stack overflow: is there less than STACK_WARN free? * STACK_WARN is defined as 1/8 of THREAD_SIZE by default. */ if (unlikely(sp < (sizeof(struct thread_info) + STACK_WARN))) { printk("do_IRQ: stack overflow: %ld\n", sp - sizeof(struct thread_info)); dump_stack(); } }

Contributors

PersonTokensPropCommitsCommitProp
jiang adamjiang adam56100.00%1100.00%
Total56100.00%1100.00%

#else
static inline void check_stack_overflow(void) {}

Contributors

PersonTokensPropCommitsCommitProp
jiang adamjiang adam8100.00%1100.00%
Total8100.00%1100.00%

#endif /* * do_IRQ handles all normal device IRQ's (the special * SMP cross-CPU interrupts have their own specific * handlers). */
void __irq_entry do_IRQ(unsigned int irq) { irq_enter(); check_stack_overflow(); generic_handle_irq(irq); irq_exit(); }

Contributors

PersonTokensPropCommitsCommitProp
wu zhangjinwu zhangjin2187.50%150.00%
jiang adamjiang adam312.50%150.00%
Total24100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle7630.40%520.83%
jiang adamjiang adam7329.20%14.17%
pre-gitpre-git3614.40%833.33%
wu zhangjinwu zhangjin2510.00%14.17%
linus torvaldslinus torvalds197.60%312.50%
paul burtonpaul burton93.60%14.17%
thomas gleixnerthomas gleixner72.80%28.33%
jason wesseljason wessel31.20%14.17%
james hoganjames hogan10.40%14.17%
arun sharmaarun sharma10.40%14.17%
Total250100.00%24100.00%
Directory: arch/mips/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.