>> I'm porting the kernel to a Vadem Clio (Vr4111), and this is happening in
>> the init part of the kernel, before start_kernel.
>>
>> I also duplicated it in a small test app. I'm pretty sure they are not
>> getting initialized.
>>
>> So who initializes globals? The bootloader?
>
>Yes, by just loading an initialized chunk of memory from the kernel
>executable. That is if your loader is ok it should initialize the
>variables automatically without anything specialy having to be done.
It's funny, because they do get initialized properly when I link with the
NetBSD (stand.ldscript) linker script, but not when I link with the
Linux-MIPS linker script (ld.script.little). It appears that something in
ld.script.llittle is throwing the bootloader (pbsdboot) off.
Regards,
Brad
|