svn commit: r332989 - head/sys/i386/include

Li-Wen Hsu lwhsu at FreeBSD.org
Wed Apr 25 07:51:42 UTC 2018


Author: lwhsu (ports committer)
Date: Wed Apr 25 07:51:41 2018
New Revision: 332989
URL: https://svnweb.freebsd.org/changeset/base/332989

Log:
  Fix i386 build after r332970 by adding IS_BSP() definition.
  
  Approved by:	kib

Modified:
  head/sys/i386/include/pcpu.h

Modified: head/sys/i386/include/pcpu.h
==============================================================================
--- head/sys/i386/include/pcpu.h	Wed Apr 25 06:50:19 2018	(r332988)
+++ head/sys/i386/include/pcpu.h	Wed Apr 25 07:51:41 2018	(r332989)
@@ -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"


More information about the svn-src-head mailing list