diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-02-09 11:33:29 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-02-09 11:33:29 +0000 |
commit | 2b36ebd4a2ff142297bf322dfd2b5f6a40f81a26 (patch) | |
tree | 6fef8d024325c5eaf4ae22a40c69a53b5f422308 /xen/include/asm-arm/hardirq.h | |
parent | 208661fff27289b35496d1a62665c3aa62234903 (diff) | |
download | xen-2b36ebd4a2ff142297bf322dfd2b5f6a40f81a26.tar.gz xen-2b36ebd4a2ff142297bf322dfd2b5f6a40f81a26.tar.bz2 xen-2b36ebd4a2ff142297bf322dfd2b5f6a40f81a26.zip |
arm: header files
A simple implementation of everything under asm-arm and arch-arm.h; some
of these files are shamelessly taken from Linux.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm/hardirq.h')
-rw-r--r-- | xen/include/asm-arm/hardirq.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/xen/include/asm-arm/hardirq.h b/xen/include/asm-arm/hardirq.h new file mode 100644 index 0000000000..9c031a803a --- /dev/null +++ b/xen/include/asm-arm/hardirq.h @@ -0,0 +1,28 @@ +#ifndef __ASM_HARDIRQ_H +#define __ASM_HARDIRQ_H + +#include <xen/config.h> +#include <xen/cache.h> +#include <xen/smp.h> + +typedef struct { + unsigned long __softirq_pending; + unsigned int __local_irq_count; +} __cacheline_aligned irq_cpustat_t; + +#include <xen/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ + +#define in_irq() (local_irq_count(smp_processor_id()) != 0) + +#define irq_enter() (local_irq_count(smp_processor_id())++) +#define irq_exit() (local_irq_count(smp_processor_id())--) + +#endif /* __ASM_HARDIRQ_H */ +/* + * Local variables: + * mode: C + * c-set-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ |