From 60b82eb5cdfeea33cddc7740a3eb30d41d4192a4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 May 2005 16:21:52 +0000 Subject: Moved definition of __shared into compiler.h --- src/include/compiler.h | 17 +++++++++++++++++ src/include/shared.h | 21 --------------------- 2 files changed, 17 insertions(+), 21 deletions(-) delete mode 100644 src/include/shared.h (limited to 'src/include') diff --git a/src/include/compiler.h b/src/include/compiler.h index 4fe4f025d..df0a01a6e 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -71,6 +71,23 @@ __asm__ ( ".equ\tDEBUG_LEVEL, " DEBUG_SYMBOL_STR ); #define __unused __attribute__((unused)) #define __used __attribute__((used)) +/* + * 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 /* ASSEMBLY */ #endif /* COMPILER_H */ diff --git a/src/include/shared.h b/src/include/shared.h deleted file mode 100644 index 2cad391a6..000000000 --- a/src/include/shared.h +++ /dev/null @@ -1,21 +0,0 @@ -#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 */ -- cgit v1.2.3-55-g7522