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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [include/] [linux/] [linkage.h] - Blame information for rev 82

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
#ifndef _LINUX_LINKAGE_H
2
#define _LINUX_LINKAGE_H
3
 
4
#include <asm/linkage.h>
5
 
6
#ifdef __cplusplus
7
#define CPP_ASMLINKAGE extern "C"
8
#else
9
#define CPP_ASMLINKAGE
10
#endif
11
 
12
#ifndef asmlinkage
13
#define asmlinkage CPP_ASMLINKAGE
14
#endif
15
 
16
#ifndef prevent_tail_call
17
# define prevent_tail_call(ret) do { } while (0)
18
#endif
19
 
20
#ifndef __ALIGN
21
#define __ALIGN         .align 4,0x90
22
#define __ALIGN_STR     ".align 4,0x90"
23
#endif
24
 
25
#ifdef __ASSEMBLY__
26
 
27
#define ALIGN __ALIGN
28
#define ALIGN_STR __ALIGN_STR
29
 
30
#ifndef ENTRY
31
#define ENTRY(name) \
32
  .globl name; \
33
  ALIGN; \
34
  name:
35
#endif
36
 
37
#ifndef WEAK
38
#define WEAK(name)         \
39
        .weak name;        \
40
        name:
41
#endif
42
 
43
#define KPROBE_ENTRY(name) \
44
  .pushsection .kprobes.text, "ax"; \
45
  ENTRY(name)
46
 
47
#define KPROBE_END(name) \
48
  END(name);             \
49
  .popsection
50
 
51
#ifndef END
52
#define END(name) \
53
  .size name, .-name
54
#endif
55
 
56
#ifndef ENDPROC
57
#define ENDPROC(name) \
58
  .type name, @function; \
59
  END(name)
60
#endif
61
 
62
#endif
63
 
64
#define NORET_TYPE    /**/
65
#define ATTRIB_NORET  __attribute__((noreturn))
66
#define NORET_AND     noreturn,
67
 
68
#ifndef FASTCALL
69
#define FASTCALL(x)     x
70
#define fastcall
71
#endif
72
 
73
#endif

powered by: WebSVN 2.1.0

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