asm.h (161735) | asm.h (169768) |
---|---|
1/* $NetBSD: asm.h,v 1.5 2003/08/07 16:26:53 agc Exp $ */ 2 3/*- 4 * Copyright (c) 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)asm.h 5.5 (Berkeley) 5/7/91 35 * | 1/* $NetBSD: asm.h,v 1.5 2003/08/07 16:26:53 agc Exp $ */ 2 3/*- 4 * Copyright (c) 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)asm.h 5.5 (Berkeley) 5/7/91 35 * |
36 * $FreeBSD: head/sys/arm/include/asm.h 161735 2006-08-30 11:45:07Z cognet $ | 36 * $FreeBSD: head/sys/arm/include/asm.h 169768 2007-05-19 16:20:37Z cognet $ |
37 */ 38 39#ifndef _MACHINE_ASM_H_ 40#define _MACHINE_ASM_H_ 41#include <sys/cdefs.h> 42 43#ifdef __ELF__ 44# define _C_LABEL(x) x --- 30 unchanged lines hidden (view full) --- 75#define _ASM_TYPE_FUNCTION #function 76#define _ASM_TYPE_OBJECT #object 77#define GLOBAL(X) .globl x 78#define _ENTRY(x) \ 79 .text; _ALIGN_TEXT; .globl x; .type x,_ASM_TYPE_FUNCTION; x: 80 81#ifdef GPROF 82# define _PROF_PROLOGUE \ | 37 */ 38 39#ifndef _MACHINE_ASM_H_ 40#define _MACHINE_ASM_H_ 41#include <sys/cdefs.h> 42 43#ifdef __ELF__ 44# define _C_LABEL(x) x --- 30 unchanged lines hidden (view full) --- 75#define _ASM_TYPE_FUNCTION #function 76#define _ASM_TYPE_OBJECT #object 77#define GLOBAL(X) .globl x 78#define _ENTRY(x) \ 79 .text; _ALIGN_TEXT; .globl x; .type x,_ASM_TYPE_FUNCTION; x: 80 81#ifdef GPROF 82# define _PROF_PROLOGUE \ |
83 mov ip, lr; bl _mcount | 83 mov ip, lr; bl __mcount |
84#else 85# define _PROF_PROLOGUE 86#endif 87 88#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE 89#define ENTRY_NP(y) _ENTRY(_C_LABEL(y)) 90#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE 91#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y)) --- 78 unchanged lines hidden --- | 84#else 85# define _PROF_PROLOGUE 86#endif 87 88#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE 89#define ENTRY_NP(y) _ENTRY(_C_LABEL(y)) 90#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE 91#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y)) --- 78 unchanged lines hidden --- |