Jeremy Fitzhardinge wrote:
Another thing it would be nice to add is an elf-note-like notion so that the kernel can export arbitrary key/value data to the bootloader (ie, the converse of the bootloader->kernel value list). Xen currently doesthis via ELF notes, but any semanically equivalent mechanism would do. It's probably simpler than trying to work out how to mush bzimage andELF together.
I suspect all we need is an offset-pointer field pointing into the kernel image. As far as the kernel build process is concerned, it becomes a section in the boot/compressed link script. That offset then needs to get exported to the setup.elf link stage and there adjusted to become a file offset.
The ELF note format is sane enough, although it looks like it's not self-terminating, so we'd either need an offset and a length field, or adopt the convention that namesz = descsz = type = 0 terminates the block (I prefer the latter, myself.) We also need the notes documented, obviously.
-hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- References:
- [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: "H. Peter Anvin" <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Linus Torvalds <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: "H. Peter Anvin" <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Linus Torvalds <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: "H. Peter Anvin" <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Linus Torvalds <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: [email protected] (Eric W. Biederman)
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: "H. Peter Anvin" <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: "H. Peter Anvin" <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: "H. Peter Anvin" <[email protected]>
- Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- From: Jeremy Fitzhardinge <[email protected]>
- [GIT PULL] x86 setup: correct booting on 486 (revised)
- Prev by Date: Re: [PATCH] replace "make ARCH=i386/x86_64 with make ARCH=x86"
- Next by Date: Re: [PATCH] replace "make ARCH=i386/x86_64 with make ARCH=x86"
- Previous by thread: Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- Next by thread: Re: [GIT PULL] x86 setup: correct booting on 486 (revised)
- Index(es):