|
|
@@ -71,6 +71,23 @@ __asm__ ( ".equ\tDEBUG_LEVEL, " DEBUG_SYMBOL_STR );
|
|
71
|
71
|
#define __unused __attribute__((unused))
|
|
72
|
72
|
#define __used __attribute__((used))
|
|
73
|
73
|
|
|
|
74
|
+/*
|
|
|
75
|
+ * To save space in the binary when multiple-driver images are
|
|
|
76
|
+ * compiled, uninitialised data areas can be shared between drivers.
|
|
|
77
|
+ * This will typically be used to share statically-allocated receive
|
|
|
78
|
+ * and transmit buffers between drivers.
|
|
|
79
|
+ *
|
|
|
80
|
+ * Use as e.g.
|
|
|
81
|
+ *
|
|
|
82
|
+ * struct {
|
|
|
83
|
+ * char rx_buf[NUM_RX_BUF][RX_BUF_SIZE];
|
|
|
84
|
+ * char tx_buf[TX_BUF_SIZE];
|
|
|
85
|
+ * } my_static_data __shared;
|
|
|
86
|
+ *
|
|
|
87
|
+ */
|
|
|
88
|
+
|
|
|
89
|
+#define __shared __asm__ ( "_shared_bss" );
|
|
|
90
|
+
|
|
74
|
91
|
#endif /* ASSEMBLY */
|
|
75
|
92
|
|
|
76
|
93
|
#endif /* COMPILER_H */
|