From fd49f423fdb771e1d9f1b41d214a140bec891d54 Mon Sep 17 00:00:00 2001 From: riastradh Date: Wed, 4 Dec 2019 03:04:52 +0000 Subject: [PATCH] Fix rump definition of cpu_number(). --- sys/rump/include/machine/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/rump/include/machine/cpu.h b/sys/rump/include/machine/cpu.h index 001f676d0abc..921834bff1bd 100644 --- a/sys/rump/include/machine/cpu.h +++ b/sys/rump/include/machine/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.23 2019/12/01 18:29:26 ad Exp $ */ +/* $NetBSD: cpu.h,v 1.24 2019/12/04 03:04:52 riastradh Exp $ */ /* * Copyright (c) 2008-2011 Antti Kantee. All Rights Reserved. @@ -79,7 +79,7 @@ void __syncicache(void *, size_t); #define curlwp rump_curlwp_fast() #define curcpu() (curlwp->l_cpu) -#define cpu_number() (cpu_index(curcpu)) +#define cpu_number() (cpu_index(curcpu())) extern struct cpu_info *rumpcpu_info_list; #define CPU_INFO_ITERATOR int __unused