|
|
|
@ -18,10 +18,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "arch/context.h"
|
|
|
|
#include "arch/context.h"
|
|
|
|
#include "thread/thread.h"
|
|
|
|
#include "thread/thread.h"
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
>>>>>>> 4e7dad9 (fooo)
|
|
|
|
|
|
|
|
///TextStream kout = TextStream(0, 80, 0, 10, true);
|
|
|
|
///TextStream kout = TextStream(0, 80, 0, 10, true);
|
|
|
|
Ticketlock koutlock;
|
|
|
|
Ticketlock koutlock;
|
|
|
|
|
|
|
|
|
|
|
|
@ -118,7 +115,7 @@ extern "C" int main() {
|
|
|
|
PS2Controller::drainBuffer();
|
|
|
|
PS2Controller::drainBuffer();
|
|
|
|
|
|
|
|
|
|
|
|
DBG << "Main CPU " << static_cast<int>(LAPIC::getID()) << endl << flush;
|
|
|
|
DBG << "Main CPU " << static_cast<int>(LAPIC::getID()) << endl << flush;
|
|
|
|
prepareContext(test1_stack, test1, (void(*)(void*)) &(Application::kickoff),(Thread*)&application);
|
|
|
|
prepareContext(&test1_stack[sizeof(test1_stack)-1], test1, (void(*)(void*)) &(Application::kickoff),(Thread*)&application);
|
|
|
|
|
|
|
|
|
|
|
|
context_launch(&test1);
|
|
|
|
context_launch(&test1);
|
|
|
|
|
|
|
|
|
|
|
|
|