Date: Thu, 18 Oct 2012 12:27:51 -0700 From: Rob Ballantyne <robballantyne3@gmail.com> To: freebsd-ppc@freebsd.org Subject: Open Firmware available after kernel is running? Message-ID: <CAKLrb5e9JiH8=VZfXuWmqSH4V_Nggk3A_Yx1=2kGcN5n4TPsAg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi All, I was wondering if the Open Firmware client interface is available after the kernel is booted. For example, could I write a kernel module that accessed Open Firmware via the client interface? I'm supposing that there is likely a static variable that points to the client interface that is stashed there in early startup -- I understand open firmware passes it's own address to the client program on the stack. However, I'm also guessing that the kernel may have taken completely over the machine in a way that doesn't permit access to the OF client interface. It appears that ~/sys/powerpc/aim/locore64.S stashes the entry point for OF in openfirmware_entry - is this still usable after the system is up and running? Thanks, Rob
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKLrb5e9JiH8=VZfXuWmqSH4V_Nggk3A_Yx1=2kGcN5n4TPsAg>