Todd,
I have noticed that the
/arch/i386/bytecode/jos/platform/driver/consoleNative.java never made it into
the CVS or into my previous diff! Here are both that file and a diff off of
the current CVS which works around the current native method implementing an
interface problem. Just add these and what's in CVS will work out of the box.
I tried to just commit these, but I have insufficient karma for that.
- Avery
Index: JJOS/common/decaf/d_main.cc
===================================================================
RCS file: /sites/jos/cvs/cvsroot/JJOS/common/decaf/d_main.cc,v
retrieving revision 1.35
diff -r1.35 d_main.cc
178,180c178,180
< internBuiltInMethod(jos_platform_driver_consoleNative_putChar,
"jos/platform/driver/consoleNative", "putChar");
< internBuiltInMethod(jos_platform_driver_consoleNative_setChar,
"jos/platform/driver/consoleNative", "setChar");
< internBuiltInMethod(jos_platform_driver_consoleNative_getChar,
"jos/platform/driver/consoleNative", "getChar");
---
> internBuiltInMethod(jos_platform_driver_consoleNative_putChar,
>"jos/platform/driver/consoleNative", "putNativeChar");
> internBuiltInMethod(jos_platform_driver_consoleNative_setChar,
>"jos/platform/driver/consoleNative", "setNativeChar");
> internBuiltInMethod(jos_platform_driver_consoleNative_getChar,
>"jos/platform/driver/consoleNative", "getNativeChar");
/**
* consoleNative.java
*
* a single virtual console,
* implemented in (PC) VGA text mode.
*/
package jos.platform.driver;
import jos.system.*;
import jos.platform.event.*;
public class consoleNative extends Object implements ConsoleDriver {
public void focusGained( FocusEvent fe ) {
setVisible(true);
}
public void focusLost( FocusEvent fe ) {
setVisible(false);
}
public char getChar( int row, int column ) {
return getNativeChar(row, column);
}
public native char getNativeChar(int row, int column );
public void setChar( int row, int column, char c ) {
setNativeChar(row, column, c);
}
public native void setNativeChar( int row, int column, char c );
public void putChar( char c ) {
putNativeChar(c);
}
public native void putNativeChar( char c );
public native void setVisible(boolean v);
} /* end class consoleNative */