Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2015 22:32:28 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] timecounters: Fix timehand generation read/write
Message-ID:  <20150603203228.GA9774@britannica.bec.de>
In-Reply-To: <1433331966-27548-1-git-send-email-sebastian.huber@embedded-brains.de>
References:  <1433331966-27548-1-git-send-email-sebastian.huber@embedded-brains.de>

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



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