> etherboot image now works!!! However, it has problems with cursor handling. The
> reason is that the cursor management registers doesn't works in monochrome mode.
> So my question is, why in "head-ether.s86" the VGA is initialized in monochrome
> mode ? I suggest to patch "head-ether.s86" initializing VGA in mode 0x3
> instead of mode 0x7, and then initialize always jjConsole with 0xb8000. Doing
> this makes cursor handling under etherboot to work.
My understanding is that JM decided to use VGA mode 7 because it
was the simplest mode to program. Does mode 3 use the same attribute
constants/etc? (I guess it does, since the GRUB code works?) Oh -- feel
free to write up a patch. I'll get you on the CVS commit list shortly. :)
> why you have used the code:
> short cursor_addr = (80 * 2 * row) + (col * 2);
> cursor_addr /= 2;
> it should be more simple to use:
> short cursor_addr = (80 * row) + col;
Because the addresses for all other VGA attributes are as the
previous (that is, twice the width time the desired row plus twice the
desired column) and I, at some point, intended to put that in a function
with bounds checking somewhere so jjconsol.cc will work for sizes other
than 80x24. That, and I was playing 'lucky guess' to determine how to set
the cursor :) If it bothers you, I'll go ahead and change it.
-_Quinn
_______________________________________________
Kernel maillist - [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel