profile.h (209975) | profile.h (218824) |
---|---|
1/*- 2 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. 3 * All rights reserved. 4 * 5 * Author: Chris G. Demetriou 6 * 7 * Permission to use, copy, modify and distribute this software and 8 * its documentation is hereby granted, provided that both the copyright --- 12 unchanged lines hidden (view full) --- 21 * Carnegie Mellon University 22 * Pittsburgh PA 15213-3890 23 * 24 * any improvements or extensions that they make and grant Carnegie the 25 * rights to redistribute these changes. 26 * 27 * from: NetBSD: profile.h,v 1.9 1997/04/06 08:47:37 cgd Exp 28 * from: FreeBSD: src/sys/alpha/include/profile.h,v 1.4 1999/12/29 | 1/*- 2 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. 3 * All rights reserved. 4 * 5 * Author: Chris G. Demetriou 6 * 7 * Permission to use, copy, modify and distribute this software and 8 * its documentation is hereby granted, provided that both the copyright --- 12 unchanged lines hidden (view full) --- 21 * Carnegie Mellon University 22 * Pittsburgh PA 15213-3890 23 * 24 * any improvements or extensions that they make and grant Carnegie the 25 * rights to redistribute these changes. 26 * 27 * from: NetBSD: profile.h,v 1.9 1997/04/06 08:47:37 cgd Exp 28 * from: FreeBSD: src/sys/alpha/include/profile.h,v 1.4 1999/12/29 |
29 * $FreeBSD: head/sys/powerpc/include/profile.h 209975 2010-07-13 05:32:19Z nwhitehorn $ | 29 * $FreeBSD: head/sys/powerpc/include/profile.h 218824 2011-02-18 21:44:53Z nwhitehorn $ |
30 */ 31 32#ifndef _MACHINE_PROFILE_H_ 33#define _MACHINE_PROFILE_H_ 34 35#define _MCOUNT_DECL void __mcount 36 37#define FUNCTION_ALIGNMENT 4 --- 40 unchanged lines hidden (view full) --- 78#ifdef __powerpc64__ 79#define MCOUNT \ 80__asm( " .text \n" \ 81 " .align 2 \n" \ 82 " .globl _mcount \n" \ 83 " .section \".opd\",\"aw\" \n" \ 84 " .align 3 \n" \ 85 "_mcount: \n" \ | 30 */ 31 32#ifndef _MACHINE_PROFILE_H_ 33#define _MACHINE_PROFILE_H_ 34 35#define _MCOUNT_DECL void __mcount 36 37#define FUNCTION_ALIGNMENT 4 --- 40 unchanged lines hidden (view full) --- 78#ifdef __powerpc64__ 79#define MCOUNT \ 80__asm( " .text \n" \ 81 " .align 2 \n" \ 82 " .globl _mcount \n" \ 83 " .section \".opd\",\"aw\" \n" \ 84 " .align 3 \n" \ 85 "_mcount: \n" \ |
86 " .quad ._mcount,.TOC.@tocbase,0 \n" \ | 86 " .quad .L._mcount,.TOC.@tocbase,0\n" \ |
87 " .previous \n" \ | 87 " .previous \n" \ |
88 " .type _mcount,@function \n" \ |
|
88 " .align 4 \n" \ | 89 " .align 4 \n" \ |
89 " .globl ._mcount \n" \ 90 " .type ._mcount,@function \n" \ 91 "._mcount: \n" \ 92 " stdu %r1,-(288+120)(%r1) \n" \ | 90 ".L._mcount: \n" \ 91 " stdu %r1,-(288+128)(%r1) \n" \ |
93 " std %r3,48(%r1) \n" \ 94 " std %r4,56(%r1) \n" \ 95 " std %r5,64(%r1) \n" \ 96 " std %r6,72(%r1) \n" \ 97 " std %r7,80(%r1) \n" \ 98 " std %r8,88(%r1) \n" \ 99 " std %r9,96(%r1) \n" \ 100 " std %r10,104(%r1) \n" \ 101 " mflr %r4 \n" \ 102 " std %r4,112(%r1) \n" \ 103 " ld %r3,0(%r1) \n" \ 104 " ld %r3,0(%r3) \n" \ 105 " ld %r3,16(%r3) \n" \ | 92 " std %r3,48(%r1) \n" \ 93 " std %r4,56(%r1) \n" \ 94 " std %r5,64(%r1) \n" \ 95 " std %r6,72(%r1) \n" \ 96 " std %r7,80(%r1) \n" \ 97 " std %r8,88(%r1) \n" \ 98 " std %r9,96(%r1) \n" \ 99 " std %r10,104(%r1) \n" \ 100 " mflr %r4 \n" \ 101 " std %r4,112(%r1) \n" \ 102 " ld %r3,0(%r1) \n" \ 103 " ld %r3,0(%r3) \n" \ 104 " ld %r3,16(%r3) \n" \ |
106 " bl .__mcount \n" \ | 105 " bl __mcount \n" \ |
107 " nop \n" \ 108 " ld %r4,112(%r1) \n" \ 109 " mtlr %r4 \n" \ 110 " ld %r3,48(%r1) \n" \ 111 " ld %r4,56(%r1) \n" \ 112 " ld %r5,64(%r1) \n" \ 113 " ld %r6,72(%r1) \n" \ 114 " ld %r7,80(%r1) \n" \ 115 " ld %r8,88(%r1) \n" \ 116 " ld %r9,96(%r1) \n" \ 117 " ld %r10,104(%r1) \n" \ | 106 " nop \n" \ 107 " ld %r4,112(%r1) \n" \ 108 " mtlr %r4 \n" \ 109 " ld %r3,48(%r1) \n" \ 110 " ld %r4,56(%r1) \n" \ 111 " ld %r5,64(%r1) \n" \ 112 " ld %r6,72(%r1) \n" \ 113 " ld %r7,80(%r1) \n" \ 114 " ld %r8,88(%r1) \n" \ 115 " ld %r9,96(%r1) \n" \ 116 " ld %r10,104(%r1) \n" \ |
118 " addi %r1,%r1,(288+120) \n" \ | 117 " addi %r1,%r1,(288+128) \n" \ |
119 " blr \n"); 120#else 121 122#ifdef PIC 123#define _PLT "@plt" 124#else 125#define _PLT 126#endif --- 95 unchanged lines hidden --- | 118 " blr \n"); 119#else 120 121#ifdef PIC 122#define _PLT "@plt" 123#else 124#define _PLT 125#endif --- 95 unchanged lines hidden --- |