[haiku-development] Re: PPC gCallOpenFirmware?

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 1 Sep 2009 18:24:09 +0200

2009/9/1 Rene Gollent <anevilyak@xxxxxxxxx>:
> On Tue, Sep 1, 2009 at 11:00 AM, Alexander von
> Gluck<kallisti5@xxxxxxxxxxx> wrote:
>> I was working on trac 4385 which is where the PPC bootloader is locking up
>> and have a small question... of_open calls gCallOpenFirmware... which we
>> define at the top of system/kernel/platform/openfirmware/openfirmware.c but
>> there is no beef behind it.
>
> src/system/kernel/arch/ppc/arch_platform.cpp initializes that via
>
> status_t
> PPCOpenFirmware::Init(struct kernel_args *kernelArgs)
> {
>        return of_init(
>                (int(*)(void*))kernelArgs->platform_args.openfirmware_entry);
> }
>

And http://haiku.it.su.se:8180/source/ is your friend. You can search
for the symbol gCallOpenFirmware, then for the symbol of_init.

Bye,
Jérôme

Other related posts: