bsp: handle mb profiling correctly

Do not use r16 to pass arguments to mcount

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
Subbaraya Sundeep Bhatta 2014-08-11 17:39:07 +05:30 committed by Jagannadha Sutradharudu Teki
parent 1c5721387d
commit 6b6fb58d15
2 changed files with 3 additions and 2 deletions

View file

@ -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.
******************************************************************************************/

View file

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