Return-Path: Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [85.10.199.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21173DDDE6 for ; Wed, 5 Nov 2008 23:37:23 +1100 (EST) Received: id: bigeasy by Chamillionaire.breakpoint.cc with local (easymta 1.00 BETA 1) id 1KxhdL-0007l4-TU for linuxppc-dev@ozlabs.org; Wed, 05 Nov 2008 13:37:15 +0100 Date: Wed, 5 Nov 2008 13:37:15 +0100 From: Sebastian Andrzej Siewior To: linuxppc-dev@ozlabs.org Subject: Rebooting the mpc8544 Message-ID: <20081105123715.GA29574@Chamillionaire.breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I'm trying to reboot the mpc8544 and pass the reason of the reboot (two bits would be enough). I've been told the a PowerPC cpu has usually a few registers which will survive a soft reset. The "normal" reboot is done via the HRESET_REQ line which is handeled by externel HW and does a power cycle. The e500 watchdog also uses the HRESET_REQ line. Other way would be use the Debug Control Register 0 (DBCR0) and set the reset bit. The manual says here that it does a hard reset so none of my registers will survive, right? There is a Most recent reset (MRR) bit in the Debug Status Register (DBSR) but that one should be always set since the last reset was a hard reset. Right now I'm thinking about stealing a page and put the information there since the memory controller isn't re-initialized. Does someone have a better idea? Sebastian