|
|
|
@ -110,7 +110,7 @@ extern "C" int main() {
|
|
|
|
Context test1;
|
|
|
|
Context test1;
|
|
|
|
uint8_t test1_stack[256];
|
|
|
|
uint8_t test1_stack[256];
|
|
|
|
|
|
|
|
|
|
|
|
prepareContext(test1_stack, test1, (void (*)(void *))&test_func1);
|
|
|
|
prepareContext(test1_stack, test1, (void(*)(void*)) &(Application::kickoff));
|
|
|
|
context_launch(&test1);
|
|
|
|
context_launch(&test1);
|
|
|
|
|
|
|
|
|
|
|
|
//Application{}.action();
|
|
|
|
//Application{}.action();
|
|
|
|
@ -131,7 +131,7 @@ extern "C" int main_ap() {
|
|
|
|
DBG << "App CPU " << static_cast<int>(Core::getID()) << endl << flush;
|
|
|
|
DBG << "App CPU " << static_cast<int>(Core::getID()) << endl << flush;
|
|
|
|
|
|
|
|
|
|
|
|
//assert(Core::getID() != 1);
|
|
|
|
//assert(Core::getID() != 1);
|
|
|
|
Application{}.action();
|
|
|
|
//Application{}.action();
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|