summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2016-11-22 15:44:25 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2016-11-22 15:44:25 +0000
commitf1161fe56cfd00b4fc45d00f9d7b6e36c8907cfe (patch)
tree46a11e3faae0c3d0c8058ff9eebdd6e96ce7a01f
parent94f6222439e7dcd1fac640472f141f570587e858 (diff)
Fix CPU info struct.
-rw-r--r--sys/arch/loongson/include/pmon.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/loongson/include/pmon.h b/sys/arch/loongson/include/pmon.h
index f556c10821e..1efcf2495ff 100644
--- a/sys/arch/loongson/include/pmon.h
+++ b/sys/arch/loongson/include/pmon.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmon.h,v 1.3 2014/03/29 23:59:49 miod Exp $ */
+/* $OpenBSD: pmon.h,v 1.4 2016/11/22 15:44:24 visa Exp $ */
/*
* Copyright (c) 2009, 2012 Miodrag Vallat.
@@ -132,7 +132,8 @@ struct pmon_env_cpu {
#define PMON_CPUTYPE_LS1A 4
#define PMON_CPUTYPE_LS1B 5
uint32_t node; /* total number of NUMA nodes */
- uint32_t coreid; /* boot CPU core id */
+ uint16_t coreid; /* boot CPU core id */
+ uint16_t reserved_cores; /* mask of reserved cores */
uint32_t speed;
uint32_t ncpus;
} __packed;