// SPDX-License-Identifier: GPL-2.0 /* * * linux/arch/cris/kernel/irq.c * * Copyright (c) 2000,2007 Axis Communications AB * * Authors: Bjorn Wesen (bjornw@axis.com) * * This file contains the code used by various IRQ handling routines: * asking for different IRQs should be done through these routines * instead of just grabbing them. Thus setups with different IRQ numbers * shouldn't result in any weird surprises, and installing new handlers * should be easier. * */ /* * IRQs are in fact implemented a bit like signal handlers for the kernel. * Naturally it's not a 1:1 relation, but there are similarities. */ #include <linux/module.h> #include <linux/ptrace.h> #include <linux/irq.h> #include <linux/sched/debug.h> #include <linux/kernel_stat.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/ioport.h> #include <linux/interrupt.h> #include <linux/timex.h> #include <linux/random.h> #include <linux/init.h> #include <linux/seq_file.h> #include <linux/errno.h> #include <linux/spinlock.h> #include <asm/io.h> #include <arch/system.h> /* called by the assembler IRQ entry functions defined in irq.h * to dispatch the interrupts to registered handlers */
asmlinkage void do_IRQ(int irq, struct pt_regs * regs) { unsigned long sp; struct pt_regs *old_regs; trace_hardirqs_off(); old_regs = set_irq_regs(regs); irq_enter(); sp = rdsp(); if (unlikely((sp & (PAGE_SIZE - 1)) < (PAGE_SIZE/8))) { printk("do_IRQ: stack overflow: %lX\n", sp); show_stack(NULL, (unsigned long *)sp); } generic_handle_irq(irq); irq_exit(); set_irq_regs(old_regs); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 44 | 45.83% | 1 | 12.50% |
Mikael Starvik | 29 | 30.21% | 2 | 25.00% |
Jesper Nilsson | 13 | 13.54% | 1 | 12.50% |
Rabin Vincent | 7 | 7.29% | 1 | 12.50% |
Andrew Morton | 2 | 2.08% | 2 | 25.00% |
Thomas Gleixner | 1 | 1.04% | 1 | 12.50% |
Total | 96 | 100.00% | 8 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 17 | 85.00% | 1 | 50.00% |
Mikael Starvik | 3 | 15.00% | 1 | 50.00% |
Total | 20 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 97 | 56.73% | 3 | 17.65% |
Mikael Starvik | 37 | 21.64% | 2 | 11.76% |
Jesper Nilsson | 14 | 8.19% | 1 | 5.88% |
Rabin Vincent | 7 | 4.09% | 1 | 5.88% |
David Howells | 3 | 1.75% | 1 | 5.88% |
Ingo Molnar | 3 | 1.75% | 1 | 5.88% |
Arnaldo Carvalho de Melo | 3 | 1.75% | 1 | 5.88% |
Andrew Morton | 2 | 1.17% | 2 | 11.76% |
Greg Kroah-Hartman | 1 | 0.58% | 1 | 5.88% |
Michael Opdenacker | 1 | 0.58% | 1 | 5.88% |
Thomas Gleixner | 1 | 0.58% | 1 | 5.88% |
Adrian Bunk | 1 | 0.58% | 1 | 5.88% |
Simon Arlott | 1 | 0.58% | 1 | 5.88% |
Total | 171 | 100.00% | 17 | 100.00% |