Re: [PATCH v3 1/3] x86/boot: Introduce the kernel_info

From: Konrad Rzeszutek Wilk
Date: Fri Oct 11 2019 - 14:41:31 EST


> >>> +be prefixed with header/magic and its size, e.g.:
> >>> +
> >>> + kernel_info:
> >>> + .ascii "LToP" /* Header, Linux top (structure). */
> >>> + .long kernel_info_var_len_data - kernel_info
> >>> + .long kernel_info_end - kernel_info
> >>> + .long 0x01234567 /* Some fixed size data for the bootloaders. */
> >>> + kernel_info_var_len_data:
> >>> + example_struct: /* Some variable size data for the bootloaders. */
> >>> + .ascii "EsTT" /* Header/Magic. */
> >>> + .long example_struct_end - example_struct
> >>> + .ascii "Struct"
> >>> + .long 0x89012345
> >>> + example_struct_end:
> >>> + example_strings: /* Some variable size data for the bootloaders. */
> >>> + .ascii "EsTs" /* Header/Magic. */
> >>
> >> Where do the Magic values "EsTT" and "EsTs" come from?
> >> where are they defined?
> >
> > EsTT == Example STrucT
> > EsTs == Example STringS
> >
> > Anyway, it can be anything which does not collide with existing variable
> > length data magics. There are none right now. So, it can be anything.
> > Maybe I should add something saying that.
>
> Yes, please.

Or make it very clear they are examples, says "1234" or "ABCD" or such.

>
> thanks.
> --
> ~Randy