Subversion Repositories shark

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*-
2
 * Copyright (c) 1990 The Regents of the University of California.
3
 * All rights reserved.
4
 *
5
 * This code is derived from software contributed to Berkeley by
6
 * William Jolitz.
7
 *
8
 * Redistribution and use in source and binary forms, with or without
9
 * modification, are permitted provided that the following conditions
10
 * are met:
11
 * 1. Redistributions of source code must retain the above copyright
12
 *    notice, this list of conditions and the following disclaimer.
13
 * 2. Redistributions in binary form must reproduce the above copyright
14
 *    notice, this list of conditions and the following disclaimer in the
15
 *    documentation and/or other materials provided with the distribution.
16
 * 3. All advertising materials mentioning features or use of this software
17
 *    must display the following acknowledgement:
18
 *      This product includes software developed by the University of
19
 *      California, Berkeley and its contributors.
20
 * 4. Neither the name of the University nor the names of its contributors
21
 *    may be used to endorse or promote products derived from this software
22
 *    without specific prior written permission.
23
 *
24
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34
 * SUCH DAMAGE.
35
 *
36
 *      from: @(#)DEFS.h        5.1 (Berkeley) 4/23/90
37
 *
38
 *      $\Id: DEFS.h,v 1.3.2.1 1997/02/14 11:08:46 bde Exp $
39
 */
40
 
41
/*
42
 * Just enough to avoid changing too much source code ...
43
 */
44
 
45
#include <ll/i386/linkage.h>
46
 
47
 
48
#ifdef __LINUX__
49
# define P2ALIGN(p2)    .align  (1<<(p2))
50
#else
51
# define P2ALIGN(p2)    .align  p2
52
#endif
53
#ifdef __LINUX__
54
#define FUNCSYM(x)      .type    x,@function
55
#else
56
#define FUNCSYM(x)      /* nothing */
57
#endif
58
 
59
#define TEXT_ALIGN      4
60
 
61
#define ENTRY(x)        FUNCSYM(x); .globl SYMBOL_NAME(x); P2ALIGN(TEXT_ALIGN); SYMBOL_NAME_LABEL(x)
62
/*
63
#define ENTRY2(x,y)     .globl SYMBOL_NAME(x); .globl SYMBOL_NAME(y); \
64
                        P2ALIGN(TEXT_ALIGN); LEXT(x) LEXT(y)
65
#define ASENTRY(x)      .globl x; P2ALIGN(TEXT_ALIGN); gLB(x)
66
*/
67
 
68
#define CNAME(x)        SYMBOL_NAME(x)
69
 
70
/*
71
 * No PIC at the moment.
72
 */
73
#define PIC_PROLOGUE
74
#define PIC_EPILOGUE
75
#define PIC_PLT(x)      x