diff options
| author | Michael Brown | 2005-05-02 16:43:15 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-05-02 16:43:15 +0200 |
| commit | 734d2e9f2db97cbda205ef81d167193faba68c0d (patch) | |
| tree | f43fefd510912a17add9d3da249c841250f95d1a /src/include | |
| parent | Tweaked to read more information (including symbol size) from blib.a (diff) | |
| download | ipxe-734d2e9f2db97cbda205ef81d167193faba68c0d.tar.gz ipxe-734d2e9f2db97cbda205ef81d167193faba68c0d.tar.xz ipxe-734d2e9f2db97cbda205ef81d167193faba68c0d.zip | |
First version
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/shared.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/shared.h b/src/include/shared.h new file mode 100644 index 000000000..2cad391a6 --- /dev/null +++ b/src/include/shared.h @@ -0,0 +1,21 @@ +#ifndef SHARED_H +#define SHARED_H + +/* + * To save space in the binary when multiple-driver images are + * compiled, uninitialised data areas can be shared between drivers. + * This will typically be used to share statically-allocated receive + * and transmit buffers between drivers. + * + * Use as e.g. + * + * struct { + * char rx_buf[NUM_RX_BUF][RX_BUF_SIZE]; + * char tx_buf[TX_BUF_SIZE]; + * } my_static_data __shared; + * + */ + +#define __shared __asm__ ( "_shared_bss" ); + +#endif /* SHARED_H */ |
