]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/BSP/microblaze_0/libsrc/standalone_v4_2/src/profile/profile_mcount_mb.S
0a5d8c9ecaf106c1d5817fb1bc9c9ce05d4f1413
[freertos] / FreeRTOS / Demo / MicroBlaze_Kintex7_EthernetLite / BSP / microblaze_0 / libsrc / standalone_v4_2 / src / profile / profile_mcount_mb.S
1 // $Id: profile_mcount_mb.S,v 1.1.2.1 2011/05/17 04:37:58 sadanan Exp $
2 /******************************************************************************
3 *
4 * Copyright (C) 2002 - 2014 Xilinx, Inc.  All rights reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * Use of the Software is limited solely to applications:
17 * (a) running on a Xilinx device, or
18 * (b) that interact with a Xilinx device through a bus or interconnect.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * XILINX  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
25 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 * SOFTWARE.
27 *
28 * Except as contained in this notice, the name of the Xilinx shall not be used
29 * in advertising or otherwise to promote the sale, use or other dealings in
30 * this Software without prior written authorization from Xilinx.
31 *
32 ******************************************************************************/
33
34         .globl _mcount 
35         .text 
36         .align 2
37         .ent _mcount
38
39         #ifndef PROFILE_NO_GRAPH
40         
41 _mcount:
42         addi r1, r1, -48
43         swi r11, r1, 44
44         swi r12, r1, 40
45         swi r5, r1, 36
46         swi r6, r1, 32
47         swi r7, r1, 28
48         swi r8, r1, 24
49         swi r9, r1, 20
50         swi r10, r1, 16
51         swi r15, r1, 12
52         add r6, r0, r15
53         brlid r15, mcount
54         lwi r5, r1, 48
55
56         lwi r11, r1, 44
57         lwi r12, r1, 40 
58         lwi r5, r1, 36
59         lwi r6, r1, 32
60         lwi r7, r1, 28
61         lwi r8, r1, 24
62         lwi r9, r1, 20
63         lwi r10, r1, 16
64         lwi r15, r1, 12
65         rtsd r15, 4
66         addi r1, r1, 48
67
68         #endif  /* PROFILE_NO_GRAPH */
69         
70         .end _mcount