Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E6bzG-0004QR-E4 for mharc-grub-devel@gnu.org; Sat, 20 Aug 2005 18:38:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E6bzC-0004O9-NV for grub-devel@gnu.org; Sat, 20 Aug 2005 18:38:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E6bz9-0004Lm-Bb for grub-devel@gnu.org; Sat, 20 Aug 2005 18:38:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E6bz8-0004L0-Nc for grub-devel@gnu.org; Sat, 20 Aug 2005 18:38:42 -0400 Received: from [66.163.179.103] (helo=web35309.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1E6buz-0003aH-JU for grub-devel@gnu.org; Sat, 20 Aug 2005 18:34:25 -0400 Received: (qmail 4525 invoked by uid 60001); 20 Aug 2005 22:34:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=y8zIOCRRVcjxSJ11kJARtsVpuqFfbcHoUGl/PHO9bUKxzBb67J0SWTeWLOmkXgf0sy0+fu+wUo5CEKcD5F0Li10EX+Nx+mNvfod+AuXBY8+Knr0uskInnlOVmtBIz8sKacD3XYLn2O728oQ00p12xxsoTyYzOkxkNGDnvWgs3VU= ; Message-ID: <20050820223410.4523.qmail@web35309.mail.mud.yahoo.com> Received: from [84.53.202.16] by web35309.mail.mud.yahoo.com via HTTP; Sat, 20 Aug 2005 15:34:09 PDT Date: Sat, 20 Aug 2005 15:34:09 -0700 (PDT) From: Ruslan Nikolaev To: The development of GRUB 2 In-Reply-To: <200508200732.51203.okuji@enbug.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-729677382-1124577249=:2587" Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] x86_64 again (related with my previous topics) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 22:38:48 -0000 --0-729677382-1124577249=:2587 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi! Hmmm... I'm a bit confused. May be I don't undestand something but... Yes it about virtual address. How operating system will have deal with kernel symbols? For example I have a system call "my_system_call". "my_system_call" have a physical address 0x00200004 and virtual address 0xffffffff80200004. x86_64 always enable virtual address space and kernel runs in negative address space. For example someone wants to use this system call. In that case kernel should converts addresses (if ELF file will provide physical address for this symbol instead of a virtual address). Is not it? I think ELF should provide virtual address and GRUB should converts it to physical address. Follow to x86_64 ABI kernel is never bigger than 2Gb + 16Mb. And I think masking with 0x7FFFFFFF is a good thing. ----------- ALSO x86_64 ABI DEFINES AND gcc PROVIDES "kernel" MODEL for compilation. I think it works properly only if all addresses are negative. ----------- AMD64 always requires enable paging when entering long mode. In that case kernel developer always can provide negative address space for kernel. ----------- Linux ELF file (for x86_64) always provides negative virtual addresses for all symbols (you can find it in System.map or directly in vmlinux ELF). Entry point for ELF also has negative address. For example you can see it in my previous post. ---------- "Yoshinori K. Okuji" wrote: On Saturday 20 August 2005 00:18, Ruslan Nikolaev wrote: > First of all I want to say that all things I said are related with x86_64. > x86_64 implements 48-bit virtual address space. As AMD writes the bits from > 64 to 48 (or implementation limit) should be all ones or all zeros. In that > case with have "sign-extended" address. Yes, but this is all about the virtual address, isn't this? GRUB deals with the physical address of an ELF object, so I don't think GRUB should care about this. Okuji _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel --------------------------------- Start your day with Yahoo! - make it your home page --0-729677382-1124577249=:2587 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi!
 
Hmmm... I'm a bit confused. May be I don't undestand something but... Yes it about virtual address. How operating system will have deal with kernel symbols? For example I have a system call "my_system_call". "my_system_call" have a physical address 0x00200004 and virtual address 0xffffffff80200004. x86_64 always enable virtual address space and kernel runs in negative address space. For example someone wants to use this system call. In that case kernel should converts addresses (if ELF file will provide physical address for this symbol instead of a virtual address). Is not it?
 
I think ELF should provide virtual address and GRUB should converts it to physical address. Follow to x86_64 ABI kernel is never bigger than 2Gb + 16Mb. And I think masking with 0x7FFFFFFF is a good thing.
 
-----------
ALSO x86_64 ABI DEFINES AND gcc PROVIDES "kernel" MODEL for compilation. I think it works properly only if all addresses are negative.
-----------
 
AMD64 always requires enable paging when entering long mode. In that case kernel developer always can provide negative address space for kernel.
 
-----------
Linux ELF file (for x86_64) always provides negative virtual addresses for all symbols (you can find it in System.map or directly in vmlinux ELF). Entry point for ELF also has negative address. For example you can see it in my previous post.
----------
 

"Yoshinori K. Okuji" <okuji@enbug.org> wrote:
On Saturday 20 August 2005 00:18, Ruslan Nikolaev wrote:
> First of all I want to say that all things I said are related with x86_64.
> x86_64 implements 48-bit virtual address space. As AMD writes the bits from
> 64 to 48 (or implementation limit) should be all ones or all zeros. In that
> case with have "sign-extended" address.

Yes, but this is all about the virtual address, isn't this? GRUB deals with
the physical address of an ELF object, so I don't think GRUB should care
about this.

Okuji


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Start your day with Yahoo! - make it your home page --0-729677382-1124577249=:2587--