|
|
|
@ -17,6 +17,7 @@
|
|
|
|
#include "interrupt/guard.h"
|
|
|
|
#include "interrupt/guard.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "arch/context.h"
|
|
|
|
#include "arch/context.h"
|
|
|
|
|
|
|
|
#include "thread/thread.h"
|
|
|
|
|
|
|
|
|
|
|
|
///TextStream kout = TextStream(0, 80, 0, 10, true);
|
|
|
|
///TextStream kout = TextStream(0, 80, 0, 10, true);
|
|
|
|
Ticketlock koutlock;
|
|
|
|
Ticketlock koutlock;
|
|
|
|
@ -108,9 +109,10 @@ extern "C" int main() {
|
|
|
|
DBG << "Main CPU " << static_cast<int>(LAPIC::getID()) << endl << flush;
|
|
|
|
DBG << "Main CPU " << static_cast<int>(LAPIC::getID()) << endl << flush;
|
|
|
|
|
|
|
|
|
|
|
|
Context test1;
|
|
|
|
Context test1;
|
|
|
|
|
|
|
|
Thread test1_thread;
|
|
|
|
uint8_t test1_stack[256];
|
|
|
|
uint8_t test1_stack[256];
|
|
|
|
|
|
|
|
|
|
|
|
prepareContext(test1_stack, test1, (void(*)(void*)) &(Application::kickoff));
|
|
|
|
prepareContext(&test1_stack[255], test1, (void(*)(void*)) &(Application::kickoff), );
|
|
|
|
context_launch(&test1);
|
|
|
|
context_launch(&test1);
|
|
|
|
|
|
|
|
|
|
|
|
//Application{}.action();
|
|
|
|
//Application{}.action();
|
|
|
|
|