Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/pic Provide a pic_set_priority_psw in the case ...



details:   https://anonhg.NetBSD.org/src/rev/c9a0d3604bba
branches:  trunk
changeset: 959501:c9a0d3604bba
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Feb 16 07:27:12 2021 +0000

description:
Provide a pic_set_priority_psw in the case that __HAVE_PIC_SET_PRIORITY
is not defined.

diffstat:

 sys/arch/arm/pic/picvar.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 835c24d9b92d -r c9a0d3604bba sys/arch/arm/pic/picvar.h
--- a/sys/arch/arm/pic/picvar.h Tue Feb 16 06:06:58 2021 +0000
+++ b/sys/arch/arm/pic/picvar.h Tue Feb 16 07:27:12 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: picvar.h,v 1.27 2021/02/15 16:32:07 jmcneill Exp $     */
+/*     $NetBSD: picvar.h,v 1.28 2021/02/16 07:27:12 skrll Exp $        */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -184,7 +184,8 @@
 void   pic_set_priority_psw(struct cpu_info *, register_t, int);
 #else
 /* Using an inline causes catch-22 problems with cpu.h */
-#define        pic_set_priority(ci, newipl)    ((void)((ci)->ci_cpl = (newipl)))
+#define        pic_set_priority(ci, newipl)            ((void)((ci)->ci_cpl = (newipl)))
+#define        pic_set_priority_psw(ci, psw, newipl)   ((void)((ci)->ci_cpl = (newipl)))
 #endif
 
 #define        PIC_IRQBASE_ALLOC       (-2)



Home | Main Index | Thread Index | Old Index