Re: Generating init and fini functions

2005-11-13 Thread Marco Gerards
Marco Gerards <[EMAIL PROTECTED]> writes: > Here is a patch that solves that. First I removed all the init and > fini functions and let GRUB_MOD_INIT and GRUB_MOD_FINI generate these > functions. I have added a script that creates a header file with all > the function prototypes for these genera

Re: Linux/ADFS partition table support

2005-11-13 Thread Marco Gerards
Timothy Baldwin <[EMAIL PROTECTED]> writes: > On Thursday 20 Oct 2005 15:47, Timothy Baldwin wrote: >> Here is support for Linux/ADFS partition tables, which is used for Linux >> partitions on discs connected to the motherboard interface of systems which >> run RISC OS. Since it shares a structur

Re: Linux/ADFS partition table support

2005-11-13 Thread Timothy Baldwin
On Sunday 13 Nov 2005 16:03, Marco Gerards wrote: > Timothy Baldwin <[EMAIL PROTECTED]> writes: > * include/grub/acorn_filecore.h: Likewise. > > I would prefer to move this to partmap/acorn.c. Or do you have to use > this struct elsewhere? Yes it's also used in disk/arm/RISC_OS/filecore.c,

symbol.h fix for ARM

2005-11-13 Thread Timothy Baldwin
In ARM GAS syntax "@" marks the start of comment, which breaks symbol.h. I choose double quotes as a replacement as they can't be used to start comments. 2005-11-13 Timothy Baldwin <[EMAIL PROTECTED]> Fix symbol.h for ARM. * include/grub/symbol.h: (FUNCTION): Use double quotes

Re: Linux/ADFS partition table support

2005-11-13 Thread Marco Gerards
Timothy Baldwin <[EMAIL PROTECTED]> writes: > On Sunday 13 Nov 2005 16:03, Marco Gerards wrote: >> Timothy Baldwin <[EMAIL PROTECTED]> writes: > >> * include/grub/acorn_filecore.h: Likewise. >> >> I would prefer to move this to partmap/acorn.c. Or do you have to use >> this struct elsewhere?

Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Alita Friedrichsen
Hi, I want to write a little Multiboot-compliant x84-64 Kernel. Is there any good way to boot it with GRUB Legacy? What are the plans for the future? cu Alita -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ -- Lust,

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Marco Gerards
"Alita Friedrichsen" <[EMAIL PROTECTED]> writes: Hi Alita, > I want to write a little Multiboot-compliant x84-64 Kernel. Is there any > good way to boot it with GRUB Legacy? What are the plans for the future? There are plans for a new multiboot. You could have a look at the plans on the wiki:

Re: symbol.h fix for ARM

2005-11-13 Thread Marco Gerards
Timothy Baldwin <[EMAIL PROTECTED]> writes: > In ARM GAS syntax "@" marks the start of comment, which breaks symbol.h. I > choose > double quotes as a replacement as they can't be used to start comments. > > 2005-11-13 Timothy Baldwin <[EMAIL PROTECTED]> > > Fix symbol.h for ARM. > >

Support for including *.mk files

2005-11-13 Thread Timothy Baldwin
Since having to edit 4 rmk files every time a system independent change is made is a bit silly, here is a patch to allow the common rules to be split off to a shared file. I will submit a patch to do so later. Also I add ".DELETE_ON_ERROR:" to make make delete targets if there is an error buildin

Re: Support for including *.mk files

2005-11-13 Thread Marco Gerards
Timothy Baldwin <[EMAIL PROTECTED]> writes: > Since having to edit 4 rmk files every time a system independent change is > made > is a bit silly, here is a patch to allow the common rules to be split off to > a shared file. I will submit a patch to do so later. > > Also I add ".DELETE_ON_ERROR:"

Re: symbol.h fix for ARM

2005-11-13 Thread Timothy Baldwin
On Sunday 13 Nov 2005 21:04, Marco Gerards wrote: > Timothy Baldwin <[EMAIL PROTECTED]> writes: > > In ARM GAS syntax "@" marks the start of comment, which breaks symbol.h. > > I choose double quotes as a replacement as they can't be used to start > > comments. > > > > 2005-11-13 Timothy Baldwin

Re: symbol.h fix for ARM

2005-11-13 Thread Marco Gerards
Timothy Baldwin <[EMAIL PROTECTED]> writes: > On Sunday 13 Nov 2005 21:04, Marco Gerards wrote: >> Timothy Baldwin <[EMAIL PROTECTED]> writes: >> > In ARM GAS syntax "@" marks the start of comment, which breaks symbol.h. >> > I choose double quotes as a replacement as they can't be used to start >

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Alita Friedrichsen
Hi Marco! > There are plans for a new multiboot. Oh, that sounds good. Protect the Multiboot information structure from overwriting ist a realy hard job. > This is all for GRUB 2. For GRUB Legacy this just won't happen, I > think. But how log does it take before I can use it? GRUB Legacy comes

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Marco Gerards
"Alita Friedrichsen" <[EMAIL PROTECTED]> writes: > Hi Marco! > >> There are plans for a new multiboot. > > Oh, that sounds good. Protect the Multiboot information structure from > overwriting ist a realy hard job. > >> This is all for GRUB 2. For GRUB Legacy this just won't happen, I >> think. >

Re: DiskOnChip Support in grub2

2005-11-13 Thread Marco Gerards
"Timothy St. Clair" <[EMAIL PROTECTED]> writes: > Is there support (patches or otherwise) for DiskOnChip in the grub2 > development branch? No, there is no such support. Perhaps it will just work if the BIOS exports the disk as either a floppy or harddisk drive. In that case you just have to te

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Alita Friedrichsen
Hi Marco! > You could have a look at the archives of the list. IIRC there was a > patch for 64 bits ELFs that was applied to GRUB 2. That is for the > current multiboot. Perhaps that's enough for you. Yes, thanks. But this Patch first is not Multiboot-compliant und secondly does not work with

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Marco Gerards
"Alita Friedrichsen" <[EMAIL PROTECTED]> writes: > Hi Marco! > >> You could have a look at the archives of the list. IIRC there was a >> patch for 64 bits ELFs that was applied to GRUB 2. That is for the >> current multiboot. Perhaps that's enough for you. > > Yes, thanks. But this Patch first

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Timothy Baldwin
On Sunday 13 Nov 2005 22:01, Alita Friedrichsen wrote: > So I'm looking for a preferably good way to boot my Kernel with the current > Multiboot Specification. Your kernel will have to switch to 64 bit mode itself, if using GRUB Legacy. -- Member AFFS, WYLUG, SWP (UK), UAF, RESPECT, StWC No to

Re: Multiboot-compliant x84-64 Kernel?

2005-11-13 Thread Alita Friedrichsen
Hallo Timothy! > Your kernel will have to switch to 64 bit mode itself, if using GRUB > Legacy. Sure, but what is the best way to link the 64-Bit Code in to the 32-Bit ELF? Or is it better to use a.out? cu Alita -- Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat, DSL-Flatrate f

memory leak in normal/command.c(grub_command_find)?

2005-11-13 Thread Mike Small
Hello, It looks to me like there is a memory leak in grub_command_find: grub_command_t grub_command_find (char *cmdline) { ... again: for (cmd = grub_command_list; cmd; cmd = cmd->next) if (grub_strcmp (cmdline, cmd->name) == 0) break; if (! cmd) grub_error (GRUB_ERR_UNKNOW