|
|
|
|
@ -10,6 +10,8 @@
|
|
|
|
|
#include "device/serialstream.h"
|
|
|
|
|
#include "device/textstream.h"
|
|
|
|
|
#include "device/ps2controller.h"
|
|
|
|
|
#include "arch/ioapic.h"
|
|
|
|
|
|
|
|
|
|
TextStream kout = TextStream(0, 80, 0, 10, true);
|
|
|
|
|
|
|
|
|
|
//TextStream dout[8] = {
|
|
|
|
|
@ -55,6 +57,9 @@ OutputStream* copyout[Core::MAX]{
|
|
|
|
|
&dout[7]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void test(){
|
|
|
|
|
kout << "test" << endl << flush;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Main function
|
|
|
|
|
// (the bootstrap processor starts here)}
|
|
|
|
|
@ -112,6 +117,10 @@ extern "C" int main() {
|
|
|
|
|
ApplicationProcessor::boot();
|
|
|
|
|
|
|
|
|
|
PS2Controller::init();
|
|
|
|
|
|
|
|
|
|
IOAPIC::init();
|
|
|
|
|
//IOAPIC::config(Core::Interrupt::KEYBOARD, Core::Interrupt::Vector vect);
|
|
|
|
|
|
|
|
|
|
Core::Interrupt::enable();
|
|
|
|
|
|
|
|
|
|
Key key = Key();
|
|
|
|
|
|