diff options
author | Michael Brown | 2005-03-08 19:53:11 +0100 |
---|---|---|
committer | Michael Brown | 2005-03-08 19:53:11 +0100 |
commit | 3d6123e69ab879c72ff489afc5bf93ef0b7a94ce (patch) | |
tree | 9f3277569153a550fa8d81ebd61bd88f266eb8da /src/include/osdep.h | |
download | ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.gz ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.xz ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.zip |
Initial revision
Diffstat (limited to 'src/include/osdep.h')
-rw-r--r-- | src/include/osdep.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/include/osdep.h b/src/include/osdep.h new file mode 100644 index 00000000..1b03e567 --- /dev/null +++ b/src/include/osdep.h @@ -0,0 +1,43 @@ +#ifndef ETHERBOOT_OSDEP_H +#define ETHERBOOT_OSDEP_H + +#define __unused __attribute__((unused)) +#define __aligned __attribute__((aligned(16))) +#define PACKED __attribute__((packed)) + +/* Optimization barrier */ +/* The "volatile" is due to gcc bugs */ +#define barrier() __asm__ __volatile__("": : :"memory") + +#include "stdint.h" +#include "limits.h" +#include "string.h" +#include "io.h" +#include "endian.h" +#include "byteswap.h" +#include "setjmp.h" +#include "latch.h" +#include "callbacks.h" +#include "hooks.h" + +/* within 1MB of 4GB is too close. + * MAX_ADDR is the maximum address we can easily do DMA to. + */ +#define MAX_ADDR (0xfff00000UL) + +typedef unsigned long Address; + +/* ANSI prototyping macro */ +#ifdef __STDC__ +#define P(x) x +#else +#define P(x) () +#endif + +#endif + +/* + * Local variables: + * c-basic-offset: 8 + * End: + */ |