Re: [PATCH] new ELF64 patch

2005-07-19 Thread Yoshinori K. Okuji
On Monday 18 July 2005 17:18, Hollis Blanchard wrote: > I don't like this. I would prefer having grub_rescue_cmd_multiboot() > call two functions: grub_load_elf32() and grub_load_elf64(): > > grub_load_elf32(Elf32_Ehdr *header) > { > if (header->e_ident[EI_CLASS] != ELFCLASS32) >

Re: [PATCH] new ELF64 patch

2005-07-18 Thread Hollis Blanchard
On Jul 16, 2005, at 6:54 PM, Ruslan Nikolaev wrote: Ok patch for x86_64 ELF64 support was rewritten. diff -urN old/multiboot.c new/multiboot.c --- old/multiboot.c 2005-07-17 02:50:11.978394408 +0400 +++ new/multiboot.c 2005-07-17 02:49:41.069093336 +0400 @@ -89,7 +89,14 @@ struct gru

Re: [PATCH] new ELF64 patch

2005-07-18 Thread Yoshinori K. Okuji
On Monday 18 July 2005 00:32, Ruslan Nikolaev wrote: > I sent new patch for mutiboot: > http://lists.gnu.org/archive/html/grub-devel/2005-07/msg00130.html > > Is it correct now? Please give me more time. I will look at your patch, but I have things to do myself. BTW, you should write ChangeLog.

Re: [PATCH] new ELF64 patch

2005-07-18 Thread Yoshinori K. Okuji
On Monday 18 July 2005 05:34, Joel Buckley wrote: > I can see this would be a problem for the final running kernel. > However, is 4GB sufficient for kernel loading & kernel memory discovery? You are absolutely right. The idea behind is that GRUB itself does not require much memory, while passing

Re: [PATCH] new ELF64 patch

2005-07-17 Thread Joel Buckley
Ruslan Nikolaev wrote: I have seen that grub2 has a 4Gb limit when detecting memory size and mmap. I think that is not good for both x86 and x86_64. i686 for example can use 64 Gb of RAM. As for x86_64 it is 2^52 bytes. I can try to fix this... But I also need an answer about ELF64 multiboot.

Re: [PATCH] new ELF64 patch

2005-07-17 Thread Ruslan Nikolaev
Hi! I sent new patch for mutiboot: http://lists.gnu.org/archive/html/grub-devel/2005-07/msg00130.html  Is it correct now? By the way... I have seen that grub2 has a 4Gb limit when detecting memory size and mmap. I think that is not good for both x86 and x86_64. i686 for example can use 64 Gb of RAM

[PATCH] new ELF64 patch

2005-07-16 Thread Ruslan Nikolaev
Hi! Ok patch for x86_64 ELF64 support was rewritten. diff -urN old/multiboot.c new/multiboot.c --- old/multiboot.c 2005-07-17 02:50:11.978394408 +0400 +++ new/multiboot.c 2005-07-17 02:49:41.069093336 +0400 @@ -89,7 +89,14 @@ struct grub_multiboot_header *header; grub_ssize

ELF64 patch

2005-07-13 Thread Ruslan Nikolaev
Hi all! I'm developing free x86_64 (amd64) operation system now. I decided to make the kernel multiboot-complient and use grub2 as a boot loader. Of course I have some problems: 1. AMD64 processor require to enable paging and to fill page tables before entering long mode (64-bit mode