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:
Yonattan Louise 2015-08-11 13:33:26 -05:00 committed by Anas Nashif
commit 520542bef2
8 changed files with 102 additions and 0 deletions

View file

@ -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]