Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2018 07:51:41 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r332989 - head/sys/i386/include
Message-ID:  <201804250751.w3P7pf2Y071375@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804250751.w3P7pf2Y071375>