[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FAD5B87.6090809@zytor.com>
Date: Fri, 11 May 2012 11:33:43 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Rob Landley <rob@...dley.net>
CC: Alex Shi <alex.shi@...el.com>, tglx@...utronix.de,
mingo@...hat.com, arnd@...db.de, rostedt@...dmis.org,
fweisbec@...il.com, jeremy@...p.org, gregkh@...uxfoundation.org,
borislav.petkov@....com, riel@...hat.com, luto@....edu,
avi@...hat.com, len.brown@...el.com, dhowells@...hat.com,
fenghua.yu@...el.com, ak@...ux.intel.com, cpw@....com,
steiner@....com, akpm@...ux-foundation.org, penberg@...nel.org,
hughd@...gle.com, rientjes@...gle.com,
kosaki.motohiro@...fujitsu.com, n-horiguchi@...jp.nec.com,
paul.gortmaker@...driver.com, trenn@...e.de, tj@...nel.org,
oleg@...hat.com, axboe@...nel.dk, a.p.zijlstra@...llo.nl,
kamezawa.hiroyu@...fujitsu.com, viro@...iv.linux.org.uk,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 1/7] x86/tlb: unify TLB_FLUSH_ALL definition
On 05/10/2012 11:46 AM, Rob Landley wrote:
> On 05/10/2012 12:00 AM, Alex Shi wrote:
>> Since sizeof(long) is 4 in x86_32 mode, and it's 8 in x86_64 mode,
>> sizeof(long long) is also 8 byte in x86_64 mode.
>> use long mode can fit TLB_FLUSH_ALL defination here both in 32 or
>> 64 bits mode.
>
> I.E. Linux follows the LP64 standad, as do the BSDs and MacOS X:
>
> http://www.unix.org/whitepapers/64bit.html
> http://www.unix.org/version2/whatsnew/lp64_wp.html
>
Specifically, it is universally assumed in the Linux kernel that
sizeof(long) == sizeof(size_t) == sizeof(intptr_t).
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists