Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NTqxJ-0003sN-Fp for mharc-grub-devel@gnu.org; Sun, 10 Jan 2010 01:07:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTqxH-0003r0-K6 for grub-devel@gnu.org; Sun, 10 Jan 2010 01:07:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTqxC-0003o0-T3 for grub-devel@gnu.org; Sun, 10 Jan 2010 01:07:15 -0500 Received: from [199.232.76.173] (port=59817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTqxC-0003nt-MM for grub-devel@gnu.org; Sun, 10 Jan 2010 01:07:10 -0500 Received: from mail-iw0-f188.google.com ([209.85.223.188]:51374) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTqxC-0002Vi-8P for grub-devel@gnu.org; Sun, 10 Jan 2010 01:07:10 -0500 Received: by iwn26 with SMTP id 26so13291886iwn.14 for ; Sat, 09 Jan 2010 22:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=+H2s7LEEa1QLYRVl1eC5vSR/55L+VwngHu0DuCZW3bU=; b=kiE8MjBcgDjJbJeQjHCys1fT3vGyyd8xMiLYoHkhn9fDl9jMV4kSXkwkEEIHhmRjlR SNOr6QspWBH7XQfrCBX+VQIHgPoBnxf76QmIKSPw+xl4tMBDbPv0Ww1SxkZhQplKmrVk pVBYMfQRHRjA9XpCeNyzROXto0W/IvDSBj5Vw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HBfAzyqqCHJK/2RBCC1wtW+2svX/Ve4qV+4rxfQhDNkPib2/8yCzzzQ1nEv9lhYKYG lRlDPKuf0vRaV77kiZyvDxzHxwgqrf/3IlL/arMgoR7qch9u0IsS9E9VVSMMILRPAcml MXnzQ+3cWRgR0mbmZ1eqcfngvIDmzLTZdFchs= MIME-Version: 1.0 Received: by 10.231.167.204 with SMTP id r12mr5149605iby.31.1263103628833; Sat, 09 Jan 2010 22:07:08 -0800 (PST) Date: Sun, 10 Jan 2010 11:37:08 +0530 Message-ID: <97c3ddb11001092207ge1dd3a3jc20f4d8ad037baec@mail.gmail.com> From: kiran pawar To: grub-devel@gnu.org Content-Type: multipart/alternative; boundary=0050450159f41c81ff047cc93b30 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Regarding virtual to physical memory mapping.. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2010 06:07:15 -0000 --0050450159f41c81ff047cc93b30 Content-Type: text/plain; charset=ISO-8859-1 Hi all, Sorry for replying late.. and thanks everyone for replying. i am not clear with answers that are given to the question . I have written a function in assembly that i have called form C code and done the linking correctly. But i want this code should run in real mode. The address that i am getting for the function is 0x5e45c000 which is a virtual address so i need to get its actual physical address to execute it in real mode (which should be less than 1 MB). So i wanted to ask is there any way to do mapping from virtual to physical in grub? Also is there any way by which i can have that assembly function placed below 1 MB ? Best regards, Kiran Pawar. --0050450159f41c81ff047cc93b30 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,
=A0=A0Sorry for replying late..=A0and=A0thanks everyone for rep= lying. i am not clear with answers that are given to the question=A0.
=
=A0=A0I have written a function in assembly that i have called form C = code and done the linking correctly. But i want =A0
=A0=A0this code should run in real mode. The address that i am getting= for the function is 0x5e45c000 which is a virtual address
=A0=A0= so i need to get its actual physical address to execute it in real mode (wh= ich should be less than 1 MB).=A0
=A0So i wanted to ask is there any way to do mapping from virtual to p= hysical in grub?=A0
=A0Also is there any way by which i can have = that assembly function placed below 1 MB ?


Best regards,
Kiran Pawar.
--0050450159f41c81ff047cc93b30--