blob: 0d545a93070eaf9ea87e6b801e8008a94fc005d2 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001// SPDX-License-Identifier: GPL-2.0-or-later
David Howells7d12e782006-10-05 14:55:46 +01002/* saved per-CPU IRQ register pointer
3 *
4 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
David Howells7d12e782006-10-05 14:55:46 +01006 */
Paul Gortmaker8bc3bcc2011-11-16 21:29:17 -05007#include <linux/export.h>
8#include <linux/percpu.h>
David Howells7d12e782006-10-05 14:55:46 +01009#include <asm/irq_regs.h>
10
11#ifndef ARCH_HAS_OWN_IRQ_REGS
12DEFINE_PER_CPU(struct pt_regs *, __irq_regs);
Andrew Mortonefbc52f2006-10-06 00:43:50 -070013EXPORT_PER_CPU_SYMBOL(__irq_regs);
David Howells7d12e782006-10-05 14:55:46 +010014#endif