From owner-freebsd-mips@FreeBSD.ORG Tue Jan 13 19:22:23 2015 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 40B486CE; Tue, 13 Jan 2015 19:22:23 +0000 (UTC) Received: from tazenat.gentiane.org (odyssee.gentiane.org [80.65.224.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2FF03E91; Tue, 13 Jan 2015 19:22:21 +0000 (UTC) Received: from localhost (500@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id f1b3dc41; Tue, 13 Jan 2015 19:15:37 +0000 (GMT) Date: Tue, 13 Jan 2015 19:15:36 +0000 From: Miod Vallat To: sson Subject: Re: [RFC] Cache control from user land (patch) Message-ID: <20150113191536.GA29344@tazenat.gentiane.org> References: <1421175994697-5980362.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1421175994697-5980362.post@n5.nabble.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 19:22:23 -0000 > Hi all: > > Below is a link to a patch that provides a sysarch() so that cache lines may > be invalidated from userspace (via the sysarch() system call). For > convenience mips_cacheflush() is provided in the machine/cachectl.h header > file: > > int mips_cacheflush(void *addr, size_t nbytes, int whichcache); Why not provide an IRIX-compatible cacheflush() and _flush_cache() aliases? Many 3rd-party software expects them if defined(__mips__). Miod