summaryrefslogtreecommitdiffstats
path: root/src/include/compiler.h
diff options
context:
space:
mode:
authorMichael Brown2007-07-29 01:17:25 +0200
committerMichael Brown2007-07-29 01:17:25 +0200
commita6a1052096c72660a24fead2e1e7d580ea4f8bc2 (patch)
tree8de861af803d0775320f6124e51d09f6397aecc7 /src/include/compiler.h
parentMerge branch 'symcheck2' (diff)
downloadipxe-a6a1052096c72660a24fead2e1e7d580ea4f8bc2.tar.gz
ipxe-a6a1052096c72660a24fead2e1e7d580ea4f8bc2.tar.xz
ipxe-a6a1052096c72660a24fead2e1e7d580ea4f8bc2.zip
Applied a modified version of holger's regparm patches.
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r--src/include/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index 376936d0..b130f28f 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -276,6 +276,9 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
/** Declare a variable or data structure as unused. */
#define __unused __attribute__ (( unused ))
+/** Apply standard C calling conventions */
+#define __cdecl __attribute__ (( cdecl , regparm(0) ))
+
/**
* Declare a function as used.
*