Deleted Added
full compact
asm.h (115084) asm.h (134287)
1/* $FreeBSD: head/sys/ia64/include/asm.h 115084 2003-05-16 21:26:42Z marcel $ */
1/* $FreeBSD: head/sys/ia64/include/asm.h 134287 2004-08-25 07:42:34Z marcel $ */
2/* From: NetBSD: asm.h,v 1.18 1997/11/03 04:22:06 ross Exp */
3
4/*
5 * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify and distribute this software and its
9 * documentation is hereby granted, provided that both the copyright

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

38/*
39 * Macro to make a local label name.
40 */
41#define LLABEL(name,num) L ## name ## num
42
43/*
44 * MCOUNT
45 */
2/* From: NetBSD: asm.h,v 1.18 1997/11/03 04:22:06 ross Exp */
3
4/*
5 * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify and distribute this software and its
9 * documentation is hereby granted, provided that both the copyright

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

38/*
39 * Macro to make a local label name.
40 */
41#define LLABEL(name,num) L ## name ## num
42
43/*
44 * MCOUNT
45 */
46
47#if !defined(GPROF) && !defined(PROF)
48#define MCOUNT /* nothing */
46#if defined(GPROF)
47#define MCOUNT \
48 alloc out0 = ar.pfs, 8, 0, 4, 0; \
49 mov out1 = r1; \
50 mov out2 = b0;; \
51 mov out3 = r0; \
52 br.call.sptk b0 = _mcount;;
49#else
53#else
50#define MCOUNT \
51 br.call.sptk.many b7=_mcount
54#define MCOUNT /* nothing */
52#endif
53
54/*
55 * ENTRY
56 * Declare a global leaf function.
57 * A leaf function does not call other functions.
58 */
59#define ENTRY(_name_, _n_args_) \
60 .global _name_; \
61 .align 16; \
62 .proc _name_; \
63_name_:; \
55#endif
56
57/*
58 * ENTRY
59 * Declare a global leaf function.
60 * A leaf function does not call other functions.
61 */
62#define ENTRY(_name_, _n_args_) \
63 .global _name_; \
64 .align 16; \
65 .proc _name_; \
66_name_:; \
64 .regstk _n_args_, 0, 0, 0 \
67 .regstk _n_args_, 0, 0, 0; \
65 MCOUNT
66
67#define ENTRY_NOPROFILE(_name_, _n_args_) \
68 .global _name_; \
69 .align 16; \
70 .proc _name_; \
71_name_:; \
72 .regstk _n_args_, 0, 0, 0

--- 113 unchanged lines hidden ---
68 MCOUNT
69
70#define ENTRY_NOPROFILE(_name_, _n_args_) \
71 .global _name_; \
72 .align 16; \
73 .proc _name_; \
74_name_:; \
75 .regstk _n_args_, 0, 0, 0

--- 113 unchanged lines hidden ---