From: Wolfgang Denk Date: Mon, 23 Apr 2012 19:39:47 +0200 Subject: [U-Boot] Sandbox question In-Reply-To: <4F959235.1070106@arcor.de> References: <20120423064108.CEC51200261@gemini.denx.de> <201204231141.16575.vapier@gentoo.org> <4F959235.1070106@arcor.de> Message-ID: <20120423173947.A7816200261@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Matthias Weisser, In message <4F959235.1070106@arcor.de> you wrote: > > > On Monday 23 April 2012 02:41:08 Wolfgang Denk wrote: > >> =>md 0x100 > >> 00000100:Segmentation fault > > > > yes, this is because the code to make this work was reverted because of ppc > > oddity. i haven't reviewed that yet to see why, but it seems to me that the > > ppc code is not quite right. The PPC code just accesses physical memory, as is. > I suggested another solution: > http://patchwork.ozlabs.org/patch/123074/ > > This has the disadvantage, as discussed in the thread, that the address > passed to mmap is not guaranteed to be returned. I don't see why this would be needed. I think you got things backwards. Please note that I do NOT complain that "md 0x100" or "md 0" segfaults in general; it is IMO perfectoy OK to do this if there is no memory. But the "bdinfo" command reported that memory starts at 0, and then both these commands are supposed to work. I am not asking for any specific mapping - I just ask for _consistent_ information provided to the user. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If ignorance is bliss, why aren't there more happy people?