Author: wmb Date: Sun Oct 16 02:41:16 2011 New Revision: 2621 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2621
Log: osfile.fth - open in read/write mode
Modified: ofw/core/osfile.fth
Modified: ofw/core/osfile.fth ============================================================================== --- ofw/core/osfile.fth Sun Oct 16 02:38:40 2011 (r2620) +++ ofw/core/osfile.fth Sun Oct 16 02:41:16 2011 (r2621) @@ -73,7 +73,7 @@ i c@ [char] \ = if [char] / i c! then loop ; -: $fopen ( adr len -- fd ) $cstr 0 swap 8 syscall 2drop retval ; +: $fopen ( adr len -- fd ) $cstr 2 swap 8 syscall 2drop retval ; : open ( -- flag ) my-args ( arg$ ) osfile$ dup 0= if ( arg$ null$ )