OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [arm/] [irq.h] - Rev 6

Go to most recent revision | Compare with Previous | Blame | View Log

#ifndef __ARM_IRQ_H__
#define __ARM_IRQ_H__
 
#include INC_SUBARCH(irq.h)
 
void irq_local_restore(unsigned long state);
void irq_local_disable_save(unsigned long *state);
int irqs_enabled();
 
static inline void irq_local_enable()
{
	enable_irqs();
}
 
static inline void irq_local_disable()
{
	disable_irqs();
}
 
 
/*
 * Destructive atomic-read.
 *
 * Write 0 to byte at @location as its contents are read back.
 */
char l4_atomic_dest_readb(void *location);
 
 
#endif /* __ARM_IRQ_H__ */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.