|
|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
#include "arch/serial.h"
|
|
|
|
|
#include "device/serialstream.h"
|
|
|
|
|
#include "device/textstream.h"
|
|
|
|
|
|
|
|
|
|
#include "device/ps2controller.h"
|
|
|
|
|
TextStream kout = TextStream(0, 80, 0, 12, true);
|
|
|
|
|
|
|
|
|
|
TextStream dout[8] = {
|
|
|
|
|
@ -68,14 +68,23 @@ extern "C" int main() {
|
|
|
|
|
kout << "pointer: " << reinterpret_cast<void*>(1994473406541717165ull)
|
|
|
|
|
<< " -> 0x1badcafefee1dead" << endl;
|
|
|
|
|
kout << "smiley: " << static_cast<char>(1) << endl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Start application processors
|
|
|
|
|
* To avoid unexpected behaviour, make sure that interrupts are not
|
|
|
|
|
* enabled before the APs are booted. Otherwise it might interfere with the
|
|
|
|
|
* Startup IPIs or even block devices like keyboard because of a missing EOI
|
|
|
|
|
*/
|
|
|
|
|
ApplicationProcessor::boot();
|
|
|
|
|
|
|
|
|
|
ApplicationProcessor::boot();
|
|
|
|
|
|
|
|
|
|
PS2Controller::init();
|
|
|
|
|
Key key = Key();
|
|
|
|
|
while (true){
|
|
|
|
|
if (PS2Controller::fetch(key)) {
|
|
|
|
|
kout << key.ascii() ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -86,7 +95,6 @@ extern "C" int main_ap() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TextWindow dout0 = TextWindow(0,20,13,19, false);
|
|
|
|
|
//dout0.reset();
|
|
|
|
|
//dout0.reset(' ', CGA::Attribute(CGA::LIGHT_GREEN, CGA::RED, false));
|
|
|
|
|
|