summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-08-14 12:13:02 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-08-14 12:13:02 +0000
commit76bb1e1768f3be76ea5600e456d4e6e5d5c3db06 (patch)
treed1448d1ee5a47cc805fb4b78e056b704d726a3c9 /sys/arch
parenta35002c09d615b520e72c21a052180b40b761920 (diff)
Initialize local variable that was supposed to hold the value of curcpu().
Spotted by miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc64/powerpc64/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/powerpc64/cpu.c b/sys/arch/powerpc64/powerpc64/cpu.c
index d5efb0544a0..43a1b8ed98f 100644
--- a/sys/arch/powerpc64/powerpc64/cpu.c
+++ b/sys/arch/powerpc64/powerpc64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.15 2020/08/04 11:48:57 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.16 2020/08/14 12:13:01 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -329,7 +329,7 @@ cpu_boot_secondary_processors(void)
int
cpu_intr(void *arg)
{
- struct cpu_info *ci;
+ struct cpu_info *ci = curcpu();
if (ci->ci_ipi_reason == IPI_DDB) {
ci->ci_ipi_reason = IPI_NOP;