summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-12-15 08:54:05 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-12-15 08:54:05 +0000
commitc4e1bdf0163d2f04d4f8577050f8cc23638e9490 (patch)
tree553881861879560edf246e510b37b115c559cb3d
parent5ad78889eb96e1db0eeea054824fb25c0b7303ce (diff)
downloadrockbox-c4e1bdf0163d2f04d4f8577050f8cc23638e9490.zip
rockbox-c4e1bdf0163d2f04d4f8577050f8cc23638e9490.tar.gz
rockbox-c4e1bdf0163d2f04d4f8577050f8cc23638e9490.tar.bz2
rockbox-c4e1bdf0163d2f04d4f8577050f8cc23638e9490.tar.xz
Now correctly informs gcc that r0 is clobbered in lcd_write_data(). The video LED bug is now dead and buried.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4147 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/video.c1
-rw-r--r--firmware/drivers/lcd.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index 617ada3..292b61a 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -158,7 +158,6 @@ int main(char* filename)
}
rb->close(fd);
- and_b(~0x40, &PBDRL); /* hack workaround to get the LED off */
if (shown == SYS_USB_CONNECTED) /* exception */
return PLUGIN_USB_CONNECTED;
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index f7fde50..b0a32f4 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -280,6 +280,7 @@ void lcd_write_data(unsigned char* p_bytes, int count)
/* %3 */ "r"(clk0sda0),
/* %4 */ "r"(LCDR),
/* %5 */ "I"(LCD_CS|LCD_DS|LCD_SD|LCD_SC)
+ : "r0"
);
sti();