monitor+mwait and volatile-ish

2012-09-26 Thread Andriy Gapon
Typical x86 MONITOR+MWAIT is like this (taken from Intel manual): EAX = Logical Address(Trigger) ECX = 0 (*Hints *) EDX = 0 (* Hints *) IF ( !trigger_store_happened) { MONITOR EAX, ECX, EDX IF ( !trigger_store_happened ) { MWAIT EAX, ECX } } In FreeBSD we have

Re: monitor+mwait and volatile-ish

2012-09-26 Thread Konstantin Belousov
On Wed, Sep 26, 2012 at 11:14:41AM +0300, Andriy Gapon wrote: Typical x86 MONITOR+MWAIT is like this (taken from Intel manual): EAX = Logical Address(Trigger) ECX = 0 (*Hints *) EDX = 0 (* Hints *) IF ( !trigger_store_happened) { MONITOR EAX, ECX, EDX IF (

Re: monitor+mwait and volatile-ish

2012-09-26 Thread Andriy Gapon
on 26/09/2012 12:10 Konstantin Belousov said the following: On Wed, Sep 26, 2012 at 11:14:41AM +0300, Andriy Gapon wrote: [snip] So what's my point. - using volatile variable with cpu_monitor requires DEVOLATILE to silence compiler warning about discarding volatile; this is unnecessary code

What's cooking for FreeBSD on wiki

2012-09-26 Thread Ivan Voras
Hello, Since I have less free time than necessary to properly maintain the What's cooking page(s), I've transitioned the one for FreeBSD 10, and hopefully future versions, to the FreeBSD wiki: http://wiki.freebsd.org/WhatsNew/FreeBSD10 This reduces the bus factor for this page and also allows

Allocator sizeof operand mismatch

2012-09-26 Thread Erik Cederstrand
Clang Analyzer reports about 100 cases of Allocator sizeof operand mismatch, for example: http://scan.freebsd.your.org/freebsd-head/sbin.umount/2012-09-23-amd64/report-k4ThD9.html#EndPath The reports seem to be valid, but I'm no export. I can work out that the above should probably be fixed by

RE: gpart is junk

2012-09-26 Thread Desmond da Peoples
Date: Mon, 17 Sep 2012 08:54:41 -0400 From: deisc...@freebsd.org To: tevans...@googlemail.com CC: an...@hesiod.org; freebsd-hackers@freebsd.org Subject: Re: gpart is junk On Mon, 17 Sep 2012, Tom Evans wrote: On Sun, Sep 16, 2012 at 8:12 PM, Jeff Anton an...@hesiod.org wrote: … my point is