[haiku-commits] Re: r40893 - in haiku/branches/features/package-management: build/jam data/system/boot headers/os/storage src/bin src/kits/locale ...

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 10 Mar 2011 09:25:51 +0100 (MET)

zooey@xxxxxxxxxxxxxxx wrote:
> * added TODO about haiku_loader panic when more than just the
>   /system and /home/config are being searched for kernel add-ons

That happens when the (limited) memory the boot loader passes to the kernel is 
There are three options to solve this:
1) try to be more conservative with memory (often not possible, as you can have 
any number of add-ons, theoretically)
2) enlarge the chunk size of the memory (usually, the kernel should copy all, 
and get rid of any extra buffers, so that there shouldn't be much waste)
3) enlarge the kernel args array - this has the downside that the kernel_args 
structure is changed, so that you can't load and older kernel anymore and vice 
versa (not an issue at this point, anyway).

BTW, the runtime loader also has built-in fallback paths, that you probably 
need to adjust as well.
Not sure if it helps, but maybe we can have a private find_directory.h that 
contains some defines for things like "common/..." that could then be used in 
system files (like the runtime loader, or the boot loader) that hard code their 


Other related posts: