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 ESMTP id 94232DDE0F for ; Sat, 10 Nov 2007 08:07:56 +1100 (EST) Subject: Re: Using PVR value after boot? From: Benjamin Herrenschmidt To: Mike Nuss In-Reply-To: References: Content-Type: text/plain Date: Sat, 10 Nov 2007 08:07:24 +1100 Message-Id: <1194642444.21340.16.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2007-11-09 at 15:39 -0500, Mike Nuss wrote: > I'm writing a module for the Security/KASUMI function on the > PPC440EPx-S and PPC440GRx-S. This relies on checking the PVR value at > runtime, which is done early on in the boot process. What would be > the correct way to check which CPU is present during module > initialization? Checking the PVR can be done at any time, though a better option would be to put something in device-tree of course :-) Ben.