[okl4-developer] okl4: system hangs if I use virtual_lcd_get_mode

Dennis Gessner d.gessner at sirrix.com
Thu Aug 14 23:32:55 EST 2008


Hello everyone,
hello Nelson,


is there any reason, why okl4 -hangs- if I use the function
"virtual_lcd_get_mode" inside "init_lcd" (regarding your tutorial: Using
A Virtual Device"?

Here is the exact call:

"virtual_lcd_get_mode(lcd->server, lcd->obj, &lcd->control->xres,
&lcd->control->yres, &lcd->control->bpp, NULL);"

It's not even possible to enter the KDB manually if I enter 	

"L4_KDB_Enter("Please please - print this...");"

one line above the other one. If I hit ESC in a VERY fast rate, it's
possible to enter the KDB. The funny thing (for me) is, it looks like
the problem is the call of the function itself, not what is inside the
function (for testing - I commented out everything inside
"virtual_lcd_get_mode").

Inside the KDB - if I /tracebuffer and dump (in the situation the system
hangs) I see only three different lines (repeating in a fast rate):

INTERRUPT: 0000c001, 80000000
SYSCALL_INTERRUPT_CONTROL
SYSCALL_IPC: 0000c001, 00000000, ffffffff

It looks like my function (init_lcd) has not the necessary rights to use
the function "virtual_lcd_get_mode". What does okl4 internally do when a
function is called? I did everything else as described in your tutorial
(http://wiki.ok-labs.com/DriverFramework).

Best regards,
Dennis

(Using okl4 2.1.1-patch9 with gta01 emulated inside qemu)



More information about the Developer mailing list