2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 19:29:04 +00:00

First version

This commit is contained in:
Michael Brown 2005-05-02 14:43:15 +00:00
parent 88baf7a383
commit 734d2e9f2d

21
src/include/shared.h Normal file
View File

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