]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, olpc: Add support for calling into OpenFirmware
authorAndres Salomon <dilinger@queued.net>
Fri, 18 Jun 2010 21:46:53 +0000 (17:46 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 18 Jun 2010 21:54:36 +0000 (14:54 -0700)
commitfd699c76552bbfa66631f019be415a87dbb08237
tree49f136f22fc94230af214f9c9c21a6fc0b7180e1
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02
x86, olpc: Add support for calling into OpenFirmware

Add support for saving OFW's cif, and later calling into it to run OFW
commands.  OFW remains resident in memory, living within virtual range
0xff800000 - 0xffc00000.  A single page directory entry points to the
pgdir that OFW actually uses, so rather than saving the entire page
table, we grab and install that one entry permanently in the kernel's
page table.

This is currently only used by the OLPC XO.  Note that this particular
calling convention breaks PAE and PAT, and so cannot be used on newer
x86 hardware.

Signed-off-by: Andres Salomon <dilinger@queued.net>
LKML-Reference: <20100618174653.7755a39a@dev.queued.net>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Documentation/x86/zero-page.txt
arch/x86/Kconfig
arch/x86/include/asm/bootparam.h
arch/x86/include/asm/olpc_ofw.h [new file with mode: 0644]
arch/x86/kernel/Makefile
arch/x86/kernel/head_32.S
arch/x86/kernel/olpc.c
arch/x86/kernel/olpc_ofw.c [new file with mode: 0644]
arch/x86/kernel/setup.c