Deleted Added
full compact
profile.h (139735) profile.h (169768)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)profile.h 8.1 (Berkeley) 6/11/93
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)profile.h 8.1 (Berkeley) 6/11/93
34 * $FreeBSD: head/sys/arm/include/profile.h 139735 2005-01-05 21:58:49Z imp $
34 * $FreeBSD: head/sys/arm/include/profile.h 169768 2007-05-19 16:20:37Z cognet $
35 */
36
37#ifndef _MACHINE_PROFILE_H_
38#define _MACHINE_PROFILE_H_
39
40/*
41 * Config generates something to tell the compiler to align functions on 32
42 * byte boundaries. A strict alignment is good for keeping the tables small.

--- 13 unchanged lines hidden (view full) ---

56
57#ifndef PLTSYM
58#define PLTSYM
59#endif
60
61#define MCOUNT \
62 __asm__(".text"); \
63 __asm__(".align 0"); \
35 */
36
37#ifndef _MACHINE_PROFILE_H_
38#define _MACHINE_PROFILE_H_
39
40/*
41 * Config generates something to tell the compiler to align functions on 32
42 * byte boundaries. A strict alignment is good for keeping the tables small.

--- 13 unchanged lines hidden (view full) ---

56
57#ifndef PLTSYM
58#define PLTSYM
59#endif
60
61#define MCOUNT \
62 __asm__(".text"); \
63 __asm__(".align 0"); \
64 __asm__(".type _mcount ,%function"); \
65 __asm__(".global _mcount"); \
66 __asm__("_mcount:"); \
64 __asm__(".type __mcount ,%function"); \
65 __asm__(".global __mcount"); \
66 __asm__("__mcount:"); \
67 /* \
68 * Preserve registers that are trashed during mcount \
69 */ \
70 __asm__("stmfd sp!, {r0-r3, ip, lr}"); \
71 /* \
72 * find the return address for mcount, \
73 * and the return address for mcount's caller. \
74 * \

--- 51 unchanged lines hidden ---
67 /* \
68 * Preserve registers that are trashed during mcount \
69 */ \
70 __asm__("stmfd sp!, {r0-r3, ip, lr}"); \
71 /* \
72 * find the return address for mcount, \
73 * and the return address for mcount's caller. \
74 * \

--- 51 unchanged lines hidden ---