From c4e1bdf0163d2f04d4f8577050f8cc23638e9490 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 15 Dec 2003 08:54:05 +0000 Subject: 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 --- apps/plugins/video.c | 1 - firmware/drivers/lcd.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/video.c b/apps/plugins/video.c index 617ada327c..292b61a69c 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 f7fde506e3..b0a32f4819 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(); -- cgit v1.2.3