Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm26 Add fiq_installhandler(), so the current FIQ ...



details:   https://anonhg.NetBSD.org/src/rev/e4a0002e34a7
branches:  trunk
changeset: 514814:e4a0002e34a7
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Mon Sep 10 23:17:48 2001 +0000

description:
Add fiq_installhandler(), so the current FIQ owner can change what handler
they've got installed without relinquishing the FIQ.

diffstat:

 sys/arch/arm26/arm26/fiq.c   |  13 ++++++++++---
 sys/arch/arm26/include/fiq.h |   5 ++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 2d3a60117576 -r e4a0002e34a7 sys/arch/arm26/arm26/fiq.c
--- a/sys/arch/arm26/arm26/fiq.c        Mon Sep 10 23:11:05 2001 +0000
+++ b/sys/arch/arm26/arm26/fiq.c        Mon Sep 10 23:17:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fiq.c,v 1.2 2001/08/21 22:40:39 bjh21 Exp $    */
+/*     $NetBSD: fiq.c,v 1.3 2001/09/10 23:17:48 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -29,7 +29,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: fiq.c,v 1.2 2001/08/21 22:40:39 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fiq.c,v 1.3 2001/09/10 23:17:48 bjh21 Exp $");
 
 #include <sys/systm.h>
 
@@ -55,8 +55,15 @@
        }
        fiq_claimed = 1;
        splx(s);
+       fiq_installhandler(handler, size);
+       return 0;
+}
+
+void
+fiq_installhandler(void *handler, size_t size)
+{
+
        memcpy(fiqhandler, handler, size);
-       return 0;
 }
 
 void
diff -r 2d3a60117576 -r e4a0002e34a7 sys/arch/arm26/include/fiq.h
--- a/sys/arch/arm26/include/fiq.h      Mon Sep 10 23:11:05 2001 +0000
+++ b/sys/arch/arm26/include/fiq.h      Mon Sep 10 23:17:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fiq.h,v 1.2 2001/08/20 23:08:10 bjh21 Exp $    */
+/*     $NetBSD: fiq.h,v 1.3 2001/09/10 23:17:49 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -56,8 +56,7 @@
 
 extern int fiq_claim(void *, size_t);
 extern void fiq_release(void);
-extern void fiq_enable(int);
-extern void fiq_disable(void);
+extern void fiq_installhandler(void *, size_t);
 extern void fiq_setregs(const struct fiq_regs *);
 extern void fiq_getregs(struct fiq_regs *);
 extern void (*fiq_downgrade_handler)(void);



Home | Main Index | Thread Index | Old Index