Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dosek
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
syswcet
dosek
Commits
1cde9624
Commit
1cde9624
authored
8 years ago
by
Christian Dietrich
Browse files
Options
Downloads
Patches
Plain Diff
patmos: add labels to identify context switch
parent
74817469
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/benchmark/timing/copter.cc
+2
-4
2 additions, 4 deletions
app/benchmark/timing/copter.cc
arch/patmos/tcb.cc
+7
-1
7 additions, 1 deletion
arch/patmos/tcb.cc
with
9 additions
and
5 deletions
app/benchmark/timing/copter.cc
+
2
−
4
View file @
1cde9624
...
@@ -144,13 +144,11 @@ TASK(CopterControlWatchdogTask) {
...
@@ -144,13 +144,11 @@ TASK(CopterControlWatchdogTask) {
void
PreIdleHook
()
{
void
PreIdleHook
()
{
static
int
count
=
0
;
static
int
count
=
0
;
kout
<<
"---
\n
"
;
kout
<<
"---
\n
"
;
timing_print
();
if
(
++
count
>
5
)
{
if
(
++
count
>
5
)
{
if
(
timing_print
()
>
0
)
{
ShutdownMachine
();
}
}
}
if
(
count
==
5
0
)
{
if
(
count
==
10
0
)
{
timing_dump
();
timing_dump
();
}
}
}
}
This diff is collapsed.
Click to expand it.
arch/patmos/tcb.cc
+
7
−
1
View file @
1cde9624
...
@@ -59,6 +59,9 @@ void context_load(const TCB *to) {
...
@@ -59,6 +59,9 @@ void context_load(const TCB *to) {
"nop"
"nop"
:
:
"r"
(
to
->
dynamic_context
)
:
:
"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) {
...
@@ -126,6 +129,9 @@ void context_save_and_load(const TCB * from, const TCB *to) {
"nop"
"nop"
:
:
"r"
(
from
->
dynamic_context
),
"r"
(
to
->
dynamic_context
)
:
:
"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
)
{
void
arch
::
TCB
::
context_switch
(
const
TCB
*
from
,
const
TCB
*
to
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment