From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 3 20:32:49 2015 Return-Path: Delivered-To: freebsd-hackers@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 CED19FBE for ; Wed, 3 Jun 2015 20:32:49 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CC9A1326 for ; Wed, 3 Jun 2015 20:32:48 +0000 (UTC) (envelope-from joerg@britannica.bec.de) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiW+zbzV1rmQ= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-150-98.web.vodafone.de [109.45.150.98]) by smtp.strato.de (RZmta 37.6 DYNA|AUTH) with ESMTPSA id a06f8dr53KWSEcO (using TLSv1 with cipher AES256-SHA (256 bits)) (Client did not present a certificate) for ; Wed, 3 Jun 2015 22:32:28 +0200 (CEST) Received: by britannica.bec.de (sSMTP sendmail emulation); Wed, 03 Jun 2015 22:32:28 +0200 Date: Wed, 3 Jun 2015 22:32:28 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Subject: Re: [PATCH] timecounters: Fix timehand generation read/write Message-ID: <20150603203228.GA9774@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <1433331966-27548-1-git-send-email-sebastian.huber@embedded-brains.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433331966-27548-1-git-send-email-sebastian.huber@embedded-brains.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2015 20:32:49 -0000 On Wed, Jun 03, 2015 at 01:46:06PM +0200, Sebastian Huber wrote: > The compiler is free to re-order load/store instructions to non-volatile > variables around a load/store of a volatile variable. This part is wrong. The *compiler* is not free to do such reorder. The CPU may, as it doesn't really care about volatile. Joerg