From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D39DDDDF8F for ; Tue, 5 Aug 2008 21:31:20 +1000 (EST) Subject: Re: PS3 early lock-up From: Benjamin Herrenschmidt To: Geert Uytterhoeven In-Reply-To: <1217932117.24157.185.camel@pasglop> References: <1217886287.24157.87.camel@pasglop> <1217886777.24157.91.camel@pasglop> <48979F6F.1050507@am.sony.com> <1217900430.24157.142.camel@pasglop> <1217932117.24157.185.camel@pasglop> Content-Type: text/plain Date: Tue, 05 Aug 2008 21:31:09 +1000 Message-Id: <1217935869.24157.187.camel@pasglop> Mime-Version: 1.0 Cc: Linux/PPC Development Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > You could do that by adding: > > if (!(pteflags & (_PAGE_USER | _PAGE_RW))) > rflags |= (1 << 1) | (1 << 63); > > Dbl check that the resulting mapping isn't accessible to user space though. Make these 1UL << x, and a proper patch would have to also test that the CPU supports the 3rd PP bit. We probably need to add a CPU feature bit for that. Ben.