Jordan Crouse wrote:
>>
>> +void video_console_get_cursor(unsigned int *x, unsigned int *y, unsigned
>> int *en)
>> +{
>> + if (console->get_cursor)
>> + console->get_cursor(&cursorx, &cursory, &cursor_enabled);
>>
>
> Oops - I think you forgot to rename some variables here.
> Also, you might want to set the return values to zero if console->get_cursor
> doesn't exist.
>
>
d'uh.. of course.
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [EMAIL PROTECTED] • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
Index: include/libpayload.h
===================================================================
--- include/libpayload.h (revision 427)
+++ include/libpayload.h (working copy)
@@ -123,6 +123,8 @@
void video_console_putc(u8 row, u8 col, unsigned int ch);
void video_console_clear(void);
void video_console_cursor_enable(int state);
+void video_console_get_cursor(unsigned int *x, unsigned int *y, unsigned int
*en);
+void video_console_set_cursor(unsigned int cursorx, unsigned int cursory);
/* drivers/option.c */
int get_option(void *dest, char *name);
Index: drivers/video/video.c
===================================================================
--- drivers/video/video.c (revision 427)
+++ drivers/video/video.c (working copy)
@@ -140,6 +140,22 @@
video_console_fixup_cursor();
}
+void video_console_get_cursor(unsigned int *x, unsigned int *y, unsigned int
*en)
+{
+ *x=0;
+ *y=0;
+ *en=0;
+
+ if (console->get_cursor)
+ console->get_cursor(x, y, en);
+}
+
+void video_console_set_cursor(unsigned int cursorx, unsigned int cursory)
+{
+ if (console && console->set_cursor)
+ console->set_cursor(cursorx, cursory);
+}
+
int video_console_init(void)
{
int i;
--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot