[haiku-development] Re: Change of kernel args struct size...

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 20 Sep 2016 01:08:08 +0000

On Tue, 20 Sep 2016 6:57 am Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:

On 09/18/2016 09:50 AM, Jessica Hamilton wrote:


On Sun, 18 Sep 2016 7:41 pm Ingo Weinhold <ingo_weinhold@xxxxxx
<mailto:ingo_weinhold@xxxxxx>> wrote:

    On 09/18/2016 07:59 AM, Jessica Hamilton wrote:
     > Getting much closer now; I can invoke the script, pass a few
    variables
     > along, but I'm stuck at how do I pass on all the include paths and
     > defines needed to compile correctly?

    I missed most of the thread, so I'm not sure what you intend to do,
but
    if you want to compile stuff, why not use jam?


I have absolutely no idea how to achieve a solution just using jam.

I want a loop from 1 to max kernel arg version, and compute the size of
the kernel args struct for each value.

I'm apparently a bit out of the loop. Isn't the current version still 1?
What are you planning to do with the sizes?


I need to add a field for the acpi root pointer, otherwise the acpi stuff
doesn't work in kernel land.

Axel suggested this could be a good opportunity to get kernel arg
versioning working.

The idea I had is to generate an array of the computed sizes by varying
define of the version.

Currently in kernel main it does a validation of the size of the passed in
kernel args struct, which means a new release of the bootloader won't be
able to boot previous kernels, unless we compile this information into the
kernel, or remove the size validation check.


Other related posts: