From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6034 invoked by alias); 28 Apr 2004 16:48:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6025 invoked from network); 28 Apr 2004 16:48:54 -0000 Received: from unknown (HELO mms1.broadcom.com) (63.70.210.58) by sources.redhat.com with SMTP; 28 Apr 2004 16:48:54 -0000 Received: from 63.70.210.1 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.6.0)); Wed, 28 Apr 2004 09:48:59 -0700 X-Server-Uuid: 97B92932-364A-4474-92D6-5CFE9C59AD14 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id JAA07129; Wed, 28 Apr 2004 09:47:56 -0700 (PDT) Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id i3SGmUov007619; Wed, 28 Apr 2004 09:48:30 -0700 (PDT) Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id i3SGmUr14773; Wed, 28 Apr 2004 09:48:30 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f To: "Stefano Martini" cc: GDB Subject: Re: new board References: <006c01c42930$56a2b7d0$2af21b9d@toti> <001801c42b64$17649c10$2af21b9d@toti> <00ca01c42d24$fdfcc410$2af21b9d@toti> From: cgd@broadcom.com Date: Thu, 29 Apr 2004 00:32:00 -0000 In-Reply-To: <00ca01c42d24$fdfcc410$2af21b9d@toti> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 X-WSS-ID: 6C913FF01O41325353-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00179.txt.bz2 At Wed, 28 Apr 2004 15:30:36 +0200, Stefano Martini wrote: > When I start the run program (mipsel-elf-run --board .....) to execute > a example program I get the following error messages: > > mips-core: 1 byte read to unmapped address 0x0 at 0x800ab230 > mips-core: 4 byte read to unmapped address 0x0 at 0x0 > mips-core: 4 byte read to unmapped address 0x0 at 0x0 > mips-core: 4 byte read to unmapped address 0x0 at 0x0 > mips-core: 4 byte read to unmapped address 0x0 at 0x0 > mips-core: 4 byte read to unmapped address 0x0 at 0x0 > > I have no address in region 0x0. Is this a problem > related to virtual and physical addresses? I'd say that you're probably trying to read virtual address 0x0, yes, and it doesn't do what you are expecting, because there's nothing at that virtual address. > I think "physical address" is an address generated by the > processor to access a memory region. > What is a virtual address? http://computing-dictionary.thefreedictionary.com/virtual%20memory For an understanding of the MIPS architecture's handling of virtual memory and address translation, I'd advise looking that the MIPS{32,64} Architecture for Programmers manuals available from www.mips.com. That documentation is more "reference" than tutuorial though. If you want more of a tutorial, I'd recommend See MIPS Run by Dominic Sweetman. cgd