From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id EF5FCDE072 for ; Thu, 3 Jul 2008 03:47:38 +1000 (EST) Message-ID: <486BBF0F.6040607@freescale.com> Date: Wed, 02 Jul 2008 12:46:55 -0500 From: Scott Wood MIME-Version: 1.0 To: Kumar Gala Subject: Re: [PATCH 1/3] mpc83xx: Power Management support References: <20080625215051.GA11784@loki.buserror.net> <7B906E0F-3149-43F0-815A-8314BF5BA039@kernel.crashing.org> <486BB6E3.1060602@freescale.com> <61D15FC6-64DC-4342-B16D-4FBFF86099A9@kernel.crashing.org> In-Reply-To: <61D15FC6-64DC-4342-B16D-4FBFF86099A9@kernel.crashing.org> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar Gala wrote: > > On Jul 2, 2008, at 12:12 PM, Scott Wood wrote: > >> Kumar Gala wrote: >>>> +#define SS_MEMSAVE 0x00 >>> What is this? add a comment? >> >> There's a comment where MEMSAVE is used: >> >> /* The first 2 words of memory are used to communicate with the > > I read this as the memory address 0, 0x4. do you mean the first two > words of the save area? Both. Memory addresses 0 and 4 are saved in the first two words of the save area, so that we can overwrite the former with the magic number and resume address. >> >> * bootloader, to tell it how to resume. >> * >> * The first word is the magic number 0xf5153ae5, and the second >> * is the pointer to mpc83xx_deep_resume. >> * >> * The original content of these two words is saved in the state >> * save area. >> */ >> >> We could stick a /* First 8 bytes of RAM */ after the #define if you >> want. > > ahh, might be useful to add SS_MEMSAVE into the comment. OK. -Scott