Add context switch profile point.
Add the context switch profile point for x86 and ARM arquitectures. Change-Id: Ib7205059104ed47b96ba75b8cfefec3ff35f6813 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
efd8e246cc
commit
520542bef2
8 changed files with 102 additions and 0 deletions
|
@ -73,6 +73,13 @@ SECTION_FUNC(TEXT, __pendsv)
|
|||
|
||||
_GDB_STUB_EXC_ENTRY
|
||||
|
||||
#ifdef CONFIG_PROFILER_CONTEXT_SWITCH
|
||||
/* Register the context switch */
|
||||
push {lr}
|
||||
bl _sys_profiler_context_switch
|
||||
pop {lr}
|
||||
#endif
|
||||
|
||||
/* load _Nanokernel into r1 and current tCCS into r2 */
|
||||
ldr r1, =_nanokernel
|
||||
ldr r2, [r1, #__tNANO_current_OFFSET]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue