Module Name: src
Committed By: skrll
Date: Tue Feb 16 07:27:12 UTC 2021
Modified Files:
src/sys/arch/arm/pic: picvar.h
Log Message:
Provide a pic_set_priority_psw in the case that __HAVE_PIC_SET_PRIORITY
is not defined.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/pic/picvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/pic/picvar.h
diff -u src/sys/arch/arm/pic/picvar.h:1.27 src/sys/arch/arm/pic/picvar.h:1.28
--- src/sys/arch/arm/pic/picvar.h:1.27 Mon Feb 15 16:32:07 2021
+++ src/sys/arch/arm/pic/picvar.h Tue Feb 16 07:27:12 2021
@@ -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(struct cpu_info *,
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)