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

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 2 Oct 2016 14:57:46 +0200

On Sun, Oct 02, 2016 at 08:45:30AM +0000, Jessica Hamilton wrote:

On Sun, 2 Oct 2016 9:33 pm Travis Geiselbrecht <geist@xxxxxxxxxx> wrote:

From watching this thread it really sounds like the entire kernel argument
structure needs to be completely rethought. Like, perhaps a list of { type,
length, data } with varying amounts of data passed.

Sorry I've inflicted that old structure on you guys from the newos days
(if that's what i think you are talking about), but it's really just a
throwaway thing that should probably be tossed for something more flexible.


Like KMessage, as is used for the boot volume perhaps.

Either that, or the "multiboot" compliant format which is used by Grub.
But I don't know if there is much interest in using that one (it would
allow to skip the native bootloader and load the kernel directly from
Grub). KMessage is possibly easier to get running.

Anyway, I'm fine with changing the struct layout in an incompatible way
now. It will break booting from old install states, but there weren't
any release with that feature yet. We can see later about switching to
KMessage or something else with more flexibility.

-- 
Adrien.

Other related posts: