From owner-svn-src-all@FreeBSD.ORG Thu Jul 26 21:37:59 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BED01065675; Thu, 26 Jul 2012 21:37:59 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 279D98FC0C; Thu, 26 Jul 2012 21:37:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6QLbxmP028135; Thu, 26 Jul 2012 21:37:59 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6QLbwGi028133; Thu, 26 Jul 2012 21:37:58 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201207262137.q6QLbwGi028133@svn.freebsd.org> From: Luigi Rizzo Date: Thu, 26 Jul 2012 21:37:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r238818 - head/sys/dev/netmap X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 21:37:59 -0000 Author: luigi Date: Thu Jul 26 21:37:58 2012 New Revision: 238818 URL: http://svn.freebsd.org/changeset/base/238818 Log: define prefetch as a noop on !x86 Modified: head/sys/dev/netmap/netmap.c Modified: head/sys/dev/netmap/netmap.c ============================================================================== --- head/sys/dev/netmap/netmap.c Thu Jul 26 20:41:36 2012 (r238817) +++ head/sys/dev/netmap/netmap.c Thu Jul 26 21:37:58 2012 (r238818) @@ -220,7 +220,11 @@ struct nm_bridge nm_bridges[NM_BRIDGES]; #ifndef linux static inline void prefetch (const void *x) { +#if defined(__i386__) || defined(__amd64__) __asm volatile("prefetcht0 %0" :: "m" (*(const unsigned long *)x)); +#else + (void)x; +#endif } #endif /* !linux */