summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-08-23 12:48:53 +0000
committerkettenis <kettenis@openbsd.org>2020-08-23 12:48:53 +0000
commit1e897c561147b9a39d42e4e521734934531c71d9 (patch)
tree122a9c2318f43f061863d08f2c8454d059499f4c
parentuhidev(4) does apply the SET_IDLE request to all its child drivers (diff)
downloadwireguard-openbsd-1e897c561147b9a39d42e4e521734934531c71d9.tar.xz
wireguard-openbsd-1e897c561147b9a39d42e4e521734934531c71d9.zip
Add missing conversion from IPL to CPU priority.
-rw-r--r--sys/arch/powerpc64/dev/xive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/dev/xive.c b/sys/arch/powerpc64/dev/xive.c
index fc9a632a58d..babe34a9a3d 100644
--- a/sys/arch/powerpc64/dev/xive.c
+++ b/sys/arch/powerpc64/dev/xive.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xive.c,v 1.9 2020/07/22 19:09:15 kettenis Exp $ */
+/* $OpenBSD: xive.c,v 1.10 2020/08/23 12:48:53 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
*
@@ -231,7 +231,7 @@ xive_attach(struct device *parent, struct device *self, void *aux)
_setipl = xive_setipl;
/* Synchronize hardware state to software state. */
- xive_write_1(sc, XIVE_TM_CPPR_HV, curcpu()->ci_cpl);
+ xive_write_1(sc, XIVE_TM_CPPR_HV, xive_prio(curcpu()->ci_cpl));
}
int