Author: wmb Date: Wed Jul 6 22:26:24 2011 New Revision: 2337 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2337
Log: OLPC XO-1.75 - Added ATAG exporting OFW callbacks to the Linux kernel.
Modified: cpu/arm/linux.fth cpu/arm/olpc/1.75/fw.bth
Modified: cpu/arm/linux.fth ============================================================================== --- cpu/arm/linux.fth Wed Jul 6 21:16:03 2011 (r2336) +++ cpu/arm/linux.fth Wed Jul 6 22:26:24 2011 (r2337) @@ -49,7 +49,8 @@ : tag-b, ( b -- ) tag-adr c! tag-adr ca1+ to tag-adr ; : tag-l, ( n -- ) tag-adr l! tag-adr la1+ to tag-adr ;
-defer fb-tag, ' noop to fb-tag, \ Define externally if appropriate +defer fb-tag, ' noop to fb-tag, \ Define externally if appropriate +defer ofw-tag, ' noop to ofw-tag, \ Define externally if appropriate
: set-parameters ( cmdline$ -- ) linux-params to tag-adr @@ -93,6 +94,8 @@
fb-tag,
+ ofw-tag, + 0 tag-l, \ size of ATAG_NONE is really 2 but must be written as 0 0 tag-l, \ ATAG_NONE ;
Modified: cpu/arm/olpc/1.75/fw.bth ============================================================================== --- cpu/arm/olpc/1.75/fw.bth Wed Jul 6 21:16:03 2011 (r2336) +++ cpu/arm/olpc/1.75/fw.bth Wed Jul 6 22:26:24 2011 (r2337) @@ -55,6 +55,17 @@ ; ' mmp-fb-tag, to fb-tag,
+\ Add a tag describing the OFW callback +: (ofw-tag,) ( -- ) + 6 tag-l, \ size + h# 41000501 tag-l, \ ATAG_MEM + cif-handler tag-l, \ Client interface handler callback address + page-table@ tag-l, \ OFW's top-level page tables + extra-mem-pa d# 20 >> tag-l, \ First section entry number + fw-pa /fw-ram + extra-mem-pa - d# 20 >> tag-l, \ Number of section entries +; +' (ofw-tag,) to ofw-tag, + \ false to stand-init-debug? true to stand-init-debug?
openfirmware@openfirmware.info