// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/arm/kernel/fiq.c * * Copyright (C) 1998 Russell King * Copyright (C) 1998, 1999 Phil Blundell * * FIQ support written by Philip Blundell <philb@gnu.org>, 1998. * * FIQ support re-written by Russell King to be more generic * * We now properly support a method by which the FIQ handlers can * be stacked onto the vector. We still do not support sharing * the FIQ vector itself. * * Operation is as follows: * 1. Owner A claims FIQ: * - default_fiq relinquishes control. * 2. Owner A: * - inserts code. * - sets any registers, * - enables FIQ. * 3. Owner B claims FIQ: * - if owner A has a relinquish function. * - disable FIQs. * - saves any registers. * - returns zero. * 4. Owner B: * - inserts code. * - sets any registers, * - enables FIQ. * 5. Owner B releases FIQ: * - Owner A is asked to reacquire FIQ: * - inserts code. * - restores saved registers. * - enables FIQ. * 6. Goto 3
*/ #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/seq_file.h>
/* Default reacquire function * - we always relinquish FIQ control * - we always reacquire FIQ control
*/ staticint fiq_def_op(void *ref, int relinquish)
{ if (!relinquish) { /* Restore default handler and registers */
local_fiq_disable();
set_fiq_regs(&dfl_fiq_regs);
set_fiq_handler(&dfl_fiq_insn, sizeof(dfl_fiq_insn));
local_fiq_enable();
/* FIXME: notify irq controller to standard enable FIQs */
}
EXPORT_SYMBOL(set_fiq_handler);
EXPORT_SYMBOL(__set_fiq_regs); /* defined in fiqasm.S */
EXPORT_SYMBOL(__get_fiq_regs); /* defined in fiqasm.S */
EXPORT_SYMBOL(claim_fiq);
EXPORT_SYMBOL(release_fiq);
EXPORT_SYMBOL(enable_fiq);
EXPORT_SYMBOL(disable_fiq);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.