aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2018-04-25 07:51:41 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2018-04-25 07:51:41 +0000
commita02c9cc57685279d78021b3e1da1a4e7d3c2a4f4 (patch)
treed24bec6e0a440a727ce834435d3d74df3701ffde /sys/i386
parente2ec2f75f2fee8e4fd30a335541d55a9aad33d3a (diff)
downloadsrc-a02c9cc57685279d78021b3e1da1a4e7d3c2a4f4.tar.gz
src-a02c9cc57685279d78021b3e1da1a4e7d3c2a4f4.zip
Fix i386 build after r332970 by adding IS_BSP() definition.
Approved by: kib
Notes
Notes: svn path=/head/; revision=332989
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/pcpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h
index f8878080fef5..13154b138c5b 100644
--- a/sys/i386/include/pcpu.h
+++ b/sys/i386/include/pcpu.h
@@ -240,6 +240,8 @@ __curpcb(void)
}
#define curpcb (__curpcb())
+#define IS_BSP() (PCPU_GET(cpuid) == 0)
+
#else /* defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE___TYPEOF) */
#error "this file needs to be ported to your compiler"