From 6b6fb58d15a31930789985e2a112692785a3fa37 Mon Sep 17 00:00:00 2001 From: Subbaraya Sundeep Bhatta Date: Mon, 11 Aug 2014 17:39:07 +0530 Subject: [PATCH] bsp: handle mb profiling correctly Do not use r16 to pass arguments to mcount Signed-off-by: Subbaraya Sundeep Bhatta Acked-by: Anirudha Sarangi --- lib/bsp/standalone/src/changelog.txt | 3 ++- lib/bsp/standalone/src/profile/profile_mcount_mb.S | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bsp/standalone/src/changelog.txt b/lib/bsp/standalone/src/changelog.txt index fc69c962..a01b52db 100755 --- a/lib/bsp/standalone/src/changelog.txt +++ b/lib/bsp/standalone/src/changelog.txt @@ -199,4 +199,5 @@ * cortexa9/smc.h * 4.2 bss 08/11/14 Added microblaze_flush_cache_ext_range and microblaze_invalidate_ * cache_ext_range declarations in mb_interface.h CR#783821. - ******************************************************************************************/ + * Modified profile_mcount_mb.S to fix CR#808412. +******************************************************************************************/ diff --git a/lib/bsp/standalone/src/profile/profile_mcount_mb.S b/lib/bsp/standalone/src/profile/profile_mcount_mb.S index d5c063ac..e2dc9ca3 100755 --- a/lib/bsp/standalone/src/profile/profile_mcount_mb.S +++ b/lib/bsp/standalone/src/profile/profile_mcount_mb.S @@ -51,7 +51,7 @@ _mcount: swi r15, r1, 12 add r5, r0, r15 brlid r15, mcount - add r6, r0, r16 + lwi r5, r1, 48 lwi r11, r1, 44 lwi r12, r1, 40