1 | #ifndef ETHERBOOT_OSDEP_H
|
---|
2 | #define ETHERBOOT_OSDEP_H
|
---|
3 |
|
---|
4 | #define __unused __attribute__((unused))
|
---|
5 | #define __aligned __attribute__((aligned(16)))
|
---|
6 | #define PACKED __attribute__((packed))
|
---|
7 |
|
---|
8 | /* Optimization barrier */
|
---|
9 | /* The "volatile" is due to gcc bugs */
|
---|
10 | #define barrier() __asm__ __volatile__("": : :"memory")
|
---|
11 |
|
---|
12 | #include "stdint.h"
|
---|
13 | #include "limits.h"
|
---|
14 | #include "string.h"
|
---|
15 | #include "io.h"
|
---|
16 | #include "endian.h"
|
---|
17 | #include "byteswap.h"
|
---|
18 | #include "setjmp.h"
|
---|
19 | #include "latch.h"
|
---|
20 | #include "callbacks.h"
|
---|
21 | #include "hooks.h"
|
---|
22 |
|
---|
23 | /* within 1MB of 4GB is too close.
|
---|
24 | * MAX_ADDR is the maximum address we can easily do DMA to.
|
---|
25 | */
|
---|
26 | #define MAX_ADDR (0xfff00000UL)
|
---|
27 |
|
---|
28 | typedef unsigned long Address;
|
---|
29 |
|
---|
30 | /* ANSI prototyping macro */
|
---|
31 | #ifdef __STDC__
|
---|
32 | #define P(x) x
|
---|
33 | #else
|
---|
34 | #define P(x) ()
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | /*
|
---|
40 | * Local variables:
|
---|
41 | * c-basic-offset: 8
|
---|
42 | * End:
|
---|
43 | */
|
---|