Browse Source

Moved definition of __shared into compiler.h

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
60b82eb5cd
4 changed files with 17 additions and 23 deletions
  1. 0
    1
      src/drivers/net/sundance.c
  2. 0
    1
      src/drivers/net/tg3.c
  3. 17
    0
      src/include/compiler.h
  4. 0
    21
      src/include/shared.h

+ 0
- 1
src/drivers/net/sundance.c View File

@@ -48,7 +48,6 @@
48 48
 #include "pci.h"
49 49
 #include "timer.h"
50 50
 #include "mii.h"
51
-#include "shared.h"
52 51
 
53 52
 #define drv_version "v1.12"
54 53
 #define drv_date "2004-03-21"

+ 0
- 1
src/drivers/net/tg3.c View File

@@ -16,7 +16,6 @@
16 16
 #include "pci.h"
17 17
 #include "timer.h"
18 18
 #include "string.h"
19
-#include "shared.h"
20 19
 #include "tg3.h"
21 20
 
22 21
 #define SUPPORT_COPPER_PHY  1

+ 17
- 0
src/include/compiler.h View File

@@ -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 */

+ 0
- 21
src/include/shared.h View File

@@ -1,21 +0,0 @@
1
-#ifndef SHARED_H
2
-#define SHARED_H
3
-
4
-/*
5
- * To save space in the binary when multiple-driver images are
6
- * compiled, uninitialised data areas can be shared between drivers.
7
- * This will typically be used to share statically-allocated receive
8
- * and transmit buffers between drivers.
9
- *
10
- * Use as e.g.
11
- *
12
- *  struct {
13
- *	char	rx_buf[NUM_RX_BUF][RX_BUF_SIZE];
14
- *	char	tx_buf[TX_BUF_SIZE];
15
- *  } my_static_data __shared;
16
- *
17
- */
18
-
19
-#define __shared __asm__ ( "_shared_bss" );
20
-
21
-#endif /* SHARED_H */

Loading…
Cancel
Save