OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [linkage.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _LINUX_LINKAGE_H
2
#define _LINUX_LINKAGE_H
3
 
4
#ifdef __cplusplus
5
#define asmlinkage extern "C"
6
#else
7
#define asmlinkage
8
#endif
9
 
10
/* SIMON: forbidden change of source file - linker error */
11
#if 0
12
#if defined(__ELF__) || defined(__COFF__)
13
#define SYMBOL_NAME_STR(X) #X
14
#define SYMBOL_NAME(X) X
15
#ifdef __STDC__
16
#define SYMBOL_NAME_LABEL(X) X##:
17
#else
18
#define SYMBOL_NAME_LABEL(X) X/**/:
19
#endif
20
#else
21
#define SYMBOL_NAME_STR(X) "_"#X
22
#ifdef __STDC__
23
#define SYMBOL_NAME(X) _##X
24
#define SYMBOL_NAME_LABEL(X) _##X##:
25
#else
26
#define SYMBOL_NAME(X) _/**/X
27
#define SYMBOL_NAME_LABEL(X) _/**/X/**/:
28
#endif
29
#endif
30
 
31
#else
32
 
33
#define SYMBOL_NAME_STR(X) "_"#X
34
#ifdef __STDC__
35
#define SYMBOL_NAME(X) _##X
36
#define SYMBOL_NAME_LABEL(X) _##X##:
37
#else
38
#define SYMBOL_NAME(X) _/**/X
39
#define SYMBOL_NAME_LABEL(X) _/**/X/**/:
40
#endif
41
 
42
#endif
43
 
44
#ifdef __mc68000__
45
#if defined(__ELF__) || defined(__COFF__)
46
#define __ALIGN .align 4
47
#define __ALIGN_STR ".align 4"
48
#else
49
#define __ALIGN .align 2
50
#define __ALIGN_STR ".align 2"
51
#endif
52
#else /* !m68k */
53
#if !defined(__i486__) && !defined(__i586__)
54
#ifdef __ELF__
55
#define __ALIGN .align 4,0x90
56
#define __ALIGN_STR ".align 4,0x90"
57
#else  /* __ELF__ */
58
#define __ALIGN .align 2,0x90
59
#define __ALIGN_STR ".align 2,0x90"
60
#endif /* __ELF__ */
61
#else  /* __i486__/__i586__ */
62
#ifdef __ELF__
63
#define __ALIGN .align 16,0x90
64
#define __ALIGN_STR ".align 16,0x90"
65
#else  /* __ELF__ */
66
#define __ALIGN .align 4,0x90
67
#define __ALIGN_STR ".align 4,0x90"
68
#endif /* __ELF__ */
69
#endif /* __i486__/__i586__ */
70
#endif
71
 
72
#define ALIGN_STR __ALIGN_STR
73
 
74
#ifdef __ASSEMBLY__
75
 
76
#define ALIGN __ALIGN
77
 
78
#define ENTRY(name) \
79
  .globl SYMBOL_NAME(name); \
80
  ALIGN; \
81
  SYMBOL_NAME_LABEL(name)
82
 
83
#endif
84
 
85
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.