Author: wmb Date: Mon Jan 16 22:05:30 2012 New Revision: 2831 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2831
Log: conftype.fth - use unaligned-@ and unaligned-! for safety
Modified: ofw/confvar/conftype.fth
Modified: ofw/confvar/conftype.fth ============================================================================== --- ofw/confvar/conftype.fth Mon Jan 16 22:05:26 2012 (r2830) +++ ofw/confvar/conftype.fth Mon Jan 16 22:05:30 2012 (r2831) @@ -142,8 +142,8 @@ place-cstr ( adr ) ;
-: rel! ( adr1 adr2 -- ) tuck - swap ! ; -: rel@ ( adr2 -- adr1 ) dup @ + ; +: rel! ( adr1 adr2 -- ) tuck - swap unaligned-! ; +: rel@ ( adr2 -- adr1 ) dup unaligned-@ + ;
6 actions action: ( apf -- adr len ) cv-string@ ;
openfirmware@openfirmware.info