From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14863 invoked by alias); 25 Nov 2003 22:24:58 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 14837 invoked from network); 25 Nov 2003 22:24:57 -0000 Received: from unknown (HELO msgbas2x.cos.agilent.com) (192.25.240.37) by sources.redhat.com with SMTP; 25 Nov 2003 22:24:57 -0000 Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 09A3A7A24; Tue, 25 Nov 2003 15:24:57 -0700 (MST) Received: from axcsbh3.cos.agilent.com (axcsbh3.cos.agilent.com [130.29.152.190]) by relcos1.cos.agilent.com (Postfix) with SMTP id D4FA2246; Tue, 25 Nov 2003 15:24:56 -0700 (MST) Received: from 130.29.152.190 by axcsbh3.cos.agilent.com (InterScan E-Mail VirusWall NT); Tue, 25 Nov 2003 15:24:56 -0700 Received: by axcsbh3.cos.agilent.com with Internet Mail Service (5.5.2653.19) id ; Tue, 25 Nov 2003 15:24:56 -0700 Message-ID: <1BEBA5E8600DD4119A50009027AF54A010FAE483@axcs04.cos.agilent.com> From: kevin_lemay@agilent.com To: nickg@ecoscentric.com Cc: ecos-discuss@sources.redhat.com Date: Tue, 25 Nov 2003 22:24:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: [ECOS] i386 Memory Size Problem X-SW-Source: 2003-11/txt/msg00386.txt.bz2 It appears to not be that easy..... The BIOS calls may only be made in real mode. Redboot initializes the CPU, makes the required BIOS calls and switches to protected mode. Then thru TFTP, GDB, etc, loads an application and executes it. So I would be able to perform the operations in RedBoot. How do redboot and the loaded application work together? I know that portions of redboot continue to run. It appears that redboot owns the lower 640K of space and applications are always loaded starting at the 1MB boundary. I know that the pcmb_misc.c file is run, at least, by the application. I do not know where to look for a way to pass data between them, but it must already been done for them to share CPU for debugging. I modified pcmb_misc to poke values at the 1Mb boundaries and read it back that appear to work correctly. I am having trouble envisioning what the proper solution looks like. Kevin -----Original Message----- From: Nick Garnett [mailto:nickg@ecoscentric.com] Sent: Tuesday, November 25, 2003 9:30 AM To: kevin_lemay@agilent.com Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] i386 Memory Size Problem kevin_lemay@agilent.com writes: > Nick, > > I found some sample code that makes the calls that I need. > > Are there any examples of storing to the c/C++ variables that would > help me to do the port? Writing to C++ variables is slightly hard since you need to handle the name mangling. So it's best to always use C variables from assembler. A straighforward movl will do the trick. -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com The eCos and RedBoot experts -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss