Skip to content
Snippets Groups Projects
Commit 1cde9624 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

patmos: add labels to identify context switch

parent 74817469
No related branches found
No related tags found
No related merge requests found
......@@ -144,13 +144,11 @@ TASK(CopterControlWatchdogTask) {
void PreIdleHook() {
static int count = 0;
kout << "---\n";
timing_print();
if (++count > 5) {
if (timing_print() > 0) {
ShutdownMachine();
}
}
if (count == 50) {
if (count == 100) {
timing_dump();
}
}
......@@ -59,6 +59,9 @@ void context_load(const TCB *to) {
"nop"
: : "r"(to->dynamic_context)
);
switch_context_load:
(void) && switch_context_load;
}
......@@ -126,6 +129,9 @@ void context_save_and_load(const TCB * from, const TCB *to) {
"nop"
: : "r" (from->dynamic_context), "r"(to->dynamic_context)
);
switch_context_save_and_load:
(void) && switch_context_save_and_load;
}
void arch::TCB::context_switch(const TCB *from, const TCB* to) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment