Author: quozl
Date: Tue May 1 04:36:22 2012
New Revision: 2961
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2961
Log:
OLPC trac 11823 - increment the value not the address
Modified:
forth/kernel/sysio.fth
Modified: forth/kernel/sysio.fth
==============================================================================
--- forth/kernel/sysio.fth Tue May 1 02:35:32 2012 (r2960)
+++ forth/kernel/sysio.fth Tue May 1 04:36:22 2012 (r2961)
@@ -171,8 +171,9 @@
: l@+ ( adr -- l adr' ) dup l@ swap la1+ ;
: sys-time&date ( -- s m h d m y )
- d# 64 syscall retval ( adr )
- l@+ l@+ l@+ l@+ l@+ 1+ l@+ drop d# 1900 + ( s m h d m y )
+ d# 64 syscall retval ( adr )
+ l@+ l@+ l@+ l@+ l@+ l@+ drop ( s m h d m-1 y-1900 )
+ swap 1+ swap d# 1900 + ( s m h d m y )
;
: install-wrapper-alloc ( -- )
Author: quozl
Date: Tue May 1 02:31:44 2012
New Revision: 2959
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2959
Log:
OLPC - the game key release display was hard to read if the serial terminal emulator had text from a previous boot, so clear the screen first.
Modified:
cpu/x86/pc/olpc/gamekeys.fth
Modified: cpu/x86/pc/olpc/gamekeys.fth
==============================================================================
--- cpu/x86/pc/olpc/gamekeys.fth Mon Apr 30 19:38:14 2012 (r2958)
+++ cpu/x86/pc/olpc/gamekeys.fth Tue May 1 02:31:44 2012 (r2959)
@@ -27,6 +27,7 @@
then
game-key@ dup to game-key-mask if
+ clear-screen
." Release the game keys to continue" cr
begin d# 100 ms game-key@ dup update-game-keys 0= until
0 7 at-xy
Author: wmb
Date: Mon Apr 30 19:38:14 2012
New Revision: 2958
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2958
Log:
OLPC trac 11823 - sys-time&date was returning the wrong month. OFW represents month numbers as 1..12, consistent with human usage, while POSIX localtime() represents them as 0..11, more convenient for indexing into C arrays.
Modified:
forth/kernel/sysio.fth
Modified: forth/kernel/sysio.fth
==============================================================================
--- forth/kernel/sysio.fth Mon Apr 30 00:40:54 2012 (r2957)
+++ forth/kernel/sysio.fth Mon Apr 30 19:38:14 2012 (r2958)
@@ -171,8 +171,8 @@
: l@+ ( adr -- l adr' ) dup l@ swap la1+ ;
: sys-time&date ( -- s m h d m y )
- d# 64 syscall retval ( adr )
- l@+ l@+ l@+ l@+ l@+ l@+ drop d# 1900 + ( s m h d m y )
+ d# 64 syscall retval ( adr )
+ l@+ l@+ l@+ l@+ l@+ 1+ l@+ drop d# 1900 + ( s m h d m y )
;
: install-wrapper-alloc ( -- )
Author: wmb
Date: Thu Apr 26 01:40:13 2012
New Revision: 2954
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2954
Log:
ASIX USB-LAN driver - fixed error in the previous change to this driver. The problem was that only the first open would work, since the phy init code was in a function that is only called after a reset of the USB port.
Modified:
dev/usb2/device/net/ax8817x.fth
Modified: dev/usb2/device/net/ax8817x.fth
==============================================================================
--- dev/usb2/device/net/ax8817x.fth Wed Apr 25 06:53:43 2012 (r2953)
+++ dev/usb2/device/net/ax8817x.fth Thu Apr 26 01:40:13 2012 (r2954)
@@ -241,6 +241,8 @@
;
: ax-start-phy ( -- )
+ select-phy
+ ax-init-mii
ax-auto-neg-wait
;
: ax-promiscuous ( -- ) rx-ctl@ 1 or rx-ctl! ;
@@ -295,11 +297,9 @@
ax-toggle-gpio
ax-get-phyid
- select-phy
ax-stop-mac
ax-get-mac-address 2drop
ax-set-ipg
- ax-init-mii
;
: ax-loopback{ ( -- )