From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id 181A66B0236 for ; Fri, 26 Mar 2010 13:54:20 -0400 (EDT) Date: Fri, 26 Mar 2010 18:54:06 +0100 From: Johannes Weiner Subject: Re: [PATCH 37 of 41] add x86 32bit support Message-ID: <20100326175406.GA28898@cmpxchg.org> References: <2a644b64b34162f323c5.1269622841@v2.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a644b64b34162f323c5.1269622841@v2.random> Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: linux-mm@kvack.org, Andrew Morton , Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , Arnd Bergmann , "Michael S. Tsirkin" , Peter Zijlstra List-ID: On Fri, Mar 26, 2010 at 06:00:41PM +0100, Andrea Arcangeli wrote: > diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/pgtable-3level.h > --- a/arch/x86/include/asm/pgtable-3level.h > +++ b/arch/x86/include/asm/pgtable-3level.h > @@ -104,6 +104,29 @@ static inline pte_t native_ptep_get_and_ > #define native_ptep_get_and_clear(xp) native_local_ptep_get_and_clear(xp) > #endif > > +#ifdef CONFIG_SMP > +union split_pmd { > + struct { > + u32 pmd_low; > + u32 pmd_high; > + }; > + pmd_t pmd; > +}; > +static inline pmd_t native_pmdp_get_and_clear(pmd_t *pmdp) > +{ > + union split_pmd res, *orig = (union pmd_parts *)pmdp; Oh, shoot, the cast needs to be renamed to (union split_pmd *) as well. Hannes -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org