-
POP instruction translates into LDMIA.W
POP {R4, R5, R6, R7, R8, R9, R10, R11, LR}
In Dissasembly mode was:
ldmia.w sp!, {r4, r5, r6, r7, r8, r9, r10, r11, lr}
-
"PUSH is a synonym for STMDB sp!, reglist and POP is a synonym for LDMIA sp! reglist. PUSH and POP are the preferred mnemonics in these cases."
That means that it will POP from the Stack Pointer, either Main or Process, depending on SPSEL in CONTROL Register. -
Change all
__asm
toasm volatile
to make sure that the compiler won't delete any asm instruction. -
LDM - Load Multiple Registers.
STM - Store Multiple Registers.
-DB - Decrement Before.
-IA - Increment After.
"The PUSH and POP instructions can be expressed in this form. See PUSH and POP for details." -
Working implementation
Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task3: Running...3 Task3: Running...3 Task3: Running...3 Task3: Running...3 Task3: Running...3 Task3: Running...3 Task3: Running...3 Task4: Running...4 Task4: Running...4 Task4: Running...4 Task4: Running...4 Task4: Running...4 Task4: Running...4 Task4: Running...4 Task5: Running...5 Task5: Running...5 Task5: Running...5 Task5: Running...5 Task5: Running...5 Task5: Running...5 Task5: Running...5 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1 Task1: Running...1Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task2: Running...2 Task3: Running...3 Task3: Running...3 Task3: Running...3 Task3: Running...3
-
Notifications
You must be signed in to change notification settings - Fork 0
marcelarosalesj-education/ese.embedded_operating_systems.thread_context_switch
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published