Skip to contentSkip to conversation

multiboot2: kernel->GRUB communication

DISCUSSION Hollis Blanchard 2 participants 3 messages Nov 14, 2006 – Nov 15, 2006

lore
Share & tools
lore
#0 lore raw

Right now the multiboot2 spec calls for bits to be set in the kernel image to indicate to GRUB that various features are required or requested.

I'm trying to come up with a cleaner way. I find all these bits very confusing, actually, and I think it would be more clear if we had something like this instead:

[... multiboot header ...]
.ascii "header_addr: 0xf00"
.ascii "load_addr: 0x0"
.ascii ...
(Actually, is it even worth supporting a.out at this point? This particular example may be obsolete.)

Video mode information:
.ascii "vga_mode: text"
.ascii "columns: 80"
.ascii "rows: 24"

Thoughts?

-Hollis

#1 lore raw

Quoting Hollis Blanchard <[email protected]>:

Quoted 8 lines

Right now the multiboot2 spec calls for bits to be set in the kernel image to indicate to GRUB that various features are required or requested.

I'm trying to come up with a cleaner way. I find all these bits very confusing, actually, and I think it would be more clear if we had something like this instead:

Quoted 6 lines

[... multiboot header ...]
.ascii "header_addr: 0xf00"
.ascii "load_addr: 0x0"
.ascii ...
(Actually, is it even worth supporting a.out at this point? This particular example may be obsolete.)

I am not a big fan of having ascii addresses because it is difficult to generate them from as and almost impossible from ld.

Quoted 4 lines

Video mode information:
.ascii "vga_mode: text"
.ascii "columns: 80"
.ascii "rows: 24"

Less problematic.

Tristan.

#2 lore raw
Quoted 10 lines · On Wed, 2006-11-15 at 09:36 +0100, [email protected] wrote:

Quoting Hollis Blanchard <[email protected]>:

Quoted 8 lines

Right now the multiboot2 spec calls for bits to be set in the kernel image to indicate to GRUB that various features are required or requested.

I'm trying to come up with a cleaner way. I find all these bits very confusing, actually, and I think it would be more clear if we had something like this instead:

Quoted 8 lines
Quoted 6 lines

[... multiboot header ...]
.ascii "header_addr: 0xf00"
.ascii "load_addr: 0x0"
.ascii ...
(Actually, is it even worth supporting a.out at this point? This particular example may be obsolete.)

I am not a big fan of having ascii addresses because it is difficult to generate them from as and almost impossible from ld.

OK, good point.

-Hollis