cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/include/asm/irq_regs.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Per-cpu current frame pointer - the location of the last exception frame on
 * the stack, stored in the per-cpu area.
 *
 * Jeremy Fitzhardinge <jeremy@goop.org>
 */
#ifndef _ASM_X86_IRQ_REGS_H

#define _ASM_X86_IRQ_REGS_H

#include <asm/percpu.h>


#define ARCH_HAS_OWN_IRQ_REGS

DECLARE_PER_CPU(struct pt_regs *, irq_regs);


static inline struct pt_regs *get_irq_regs(void) { return this_cpu_read(irq_regs); }

Contributors

PersonTokensPropCommitsCommitProp
Brian Gerst1694.12%150.00%
Alex Shi15.88%150.00%
Total17100.00%2100.00%


static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs) { struct pt_regs *old_regs; old_regs = get_irq_regs(); this_cpu_write(irq_regs, new_regs); return old_regs; }

Contributors

PersonTokensPropCommitsCommitProp
Brian Gerst3397.06%150.00%
Alex Shi12.94%150.00%
Total34100.00%2100.00%

#endif /* _ASM_X86_IRQ_REGS_32_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Brian Gerst7090.91%125.00%
Thomas Gleixner45.19%125.00%
Alex Shi22.60%125.00%
Greg Kroah-Hartman11.30%125.00%
Total77100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.