[haiku-commits] Re: haiku: hrev46459 - src/system/boot/loader src/system/boot/platform/generic headers/private/kernel/boot

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 07 Dec 2013 06:08:06 +0100

On 07/12/2013 04:16, François Revol wrote:
> On 07/12/2013 03:56, François Revol wrote:
>>
>> That'd spare some bytes, and even if it still fits, it'd be nice to
>> allow debug builds to fit too...
>> luckily the efi branch one still fits, and it seems I'll need it since
>> the HEAD floppy does start in QEMU but not the EFI one.
> 
> Actually the debug efi loader gets stuck in calibration_loop() but the
> non-debug build seems to run... I'm puzzled.
> 

At least I found why the EFI branch loader fails:
the static HashMap uses OpenHashMap which calls malloc() from the ctor,
which is called before the heap is even initialized. It's a miracle that
it even runs on x86.

François.

Other related posts: