mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 18:38:38 +00:00
dc2eb928a1
* To remove the risk of inconvenient register allocation decisions by the compiler, these functions are separated out as pure assembler. * The apcs frame manipulation code is not applicable for Thumb-2 (and also not easily compatible). Since it's not essential to have a full frame on these leaf assembler functions, the frame manipulation is removed, in the interests of simplicity. * Split up ldm/stm instructions to be compatible with Thumb-2, as well as avoiding instruction forms deprecated on >= ARMv7. Signed-off-by: Dave Martin <dave.martin@linaro.org> Reviewed-by: Nicolas Pitre <nicolas.pitre@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/*
|
|
* arch/arm/include/asm/fiq.h
|
|
*
|
|
* Support for FIQ on ARM architectures.
|
|
* Written by Philip Blundell <philb@gnu.org>, 1998
|
|
* Re-written by Russell King
|
|
*/
|
|
|
|
#ifndef __ASM_FIQ_H
|
|
#define __ASM_FIQ_H
|
|
|
|
#include <asm/ptrace.h>
|
|
|
|
struct fiq_handler {
|
|
struct fiq_handler *next;
|
|
/* Name
|
|
*/
|
|
const char *name;
|
|
/* Called to ask driver to relinquish/
|
|
* reacquire FIQ
|
|
* return zero to accept, or -<errno>
|
|
*/
|
|
int (*fiq_op)(void *, int relinquish);
|
|
/* data for the relinquish/reacquire functions
|
|
*/
|
|
void *dev_id;
|
|
};
|
|
|
|
extern int claim_fiq(struct fiq_handler *f);
|
|
extern void release_fiq(struct fiq_handler *f);
|
|
extern void set_fiq_handler(void *start, unsigned int length);
|
|
extern void enable_fiq(int fiq);
|
|
extern void disable_fiq(int fiq);
|
|
|
|
/* helpers defined in fiqasm.S: */
|
|
extern void __set_fiq_regs(unsigned long const *regs);
|
|
extern void __get_fiq_regs(unsigned long *regs);
|
|
|
|
static inline void set_fiq_regs(struct pt_regs const *regs)
|
|
{
|
|
__set_fiq_regs(®s->ARM_r8);
|
|
}
|
|
|
|
static inline void get_fiq_regs(struct pt_regs *regs)
|
|
{
|
|
__get_fiq_regs(®s->ARM_r8);
|
|
}
|
|
|
|
#endif
|