Author: wmb
Date: 2009-08-31 18:33:21 +0200 (Mon, 31 Aug 2009)
New Revision: 1340
Modified:
ofw/gui/mouse.fth
Log:
Fixed comment typo, tip o' the hat to James Cameron.
Modified: ofw/gui/mouse.fth
===================================================================
--- ofw/gui/mouse.fth 2009-08-30 01:33:45 UTC (rev 1339)
+++ ofw/gui/mouse.fth 2009-08-31 16:33:21 UTC (rev 1340)
@@ -72,8 +72,8 @@
00000000011000001100000000000000 ,
00000000011000000110000000000000 ,
00000000001100011000000000000000 ,
- 00000000000111110000000000000000 ,
00000000000111110000000000000000 ,
+ 00000000000111110000000000000000 ,
create black-bits
00000000000000000000000000000000 ,
@@ -148,7 +148,7 @@
: update-position ( x y -- )
2dup or 0= if 2drop exit then \ Avoid flicker if there is no movement
- \ Minimize the time the cursor is down by doing computa1000000000000000000 ,tion in advance
+ \ Minimize the time the cursor is down by doing computation in advance
\ Considering the amount of code that is executed to put up the cursor,
\ this optimization is probable unnoticeable, but it doesn't cost much.
negate ypos + 0 max-y cursor-h - clamp ( x y' )
Author: wmb
Date: 2009-08-28 22:09:23 +0200 (Fri, 28 Aug 2009)
New Revision: 1335
Modified:
cpu/x86/pc/olpc/via/devices.fth
Log:
Via - implemented ignore-power-button .
Modified: cpu/x86/pc/olpc/via/devices.fth
===================================================================
--- cpu/x86/pc/olpc/via/devices.fth 2009-08-28 20:08:38 UTC (rev 1334)
+++ cpu/x86/pc/olpc/via/devices.fth 2009-08-28 20:09:23 UTC (rev 1335)
@@ -213,7 +213,17 @@
fload ${BP}/dev/olpc/spiflash/spiif.fth \ Generic low-level SPI bus access
fload ${BP}/dev/olpc/spiflash/spiflash.fth \ SPI FLASH programming
fload ${BP}/dev/olpc/kb3700/ecspi.fth \ EC chip SPI FLASH access
-.( XXX Implement ignore-power-button) cr : ignore-power-button ( -- ) ;
+
+\ ignore-power-button is unnecessary on XO-1.5 because the PWR_BUT_OUT# signal
+\ is driven by the EC. If the EC is turned off for SPI FLASH writing, it won't
+\ assert PWR_BUT_OUT# . When the EC is on, it will "pull the plug" on the CPU
+\ after the power button has been held down for several seconds, regardless of
+\ what the CPU is doing. So the following implementation of ignore-power-button
+\ is mostly pointless in the system context. It does prevent the CPU from
+\ shutting down of its own accord, but the EC override pretty much masks that.
+
+: ignore-power-button ( -- ) h# 889b config-b@ 2 or h# 889b config-b! ;
+
fload ${BP}/dev/olpc/kb3700/ecio.fth \ I/O space access to EC chip
fload ${BP}/dev/via/spi/spi.fth \ Driver for Via SPI controller
fload ${BP}/dev/via/spi/bbspi.fth \ Tethered SPI FLASH programming