Browse Source

Fixed #654. Make sure the gotoblas_init function is run before all other static initializations.

tags/v0.2.15^2
Zhang Xianyi 10 years ago
parent
commit
11ac4665c8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      driver/others/memory.c

+ 2
- 2
driver/others/memory.c View File

@@ -139,8 +139,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#define BITMASK(a, b, c) ((((a) >> (b)) & (c)))

#define CONSTRUCTOR __attribute__ ((constructor))
#define DESTRUCTOR __attribute__ ((destructor))
#define CONSTRUCTOR __attribute__ ((constructor(101)))
#define DESTRUCTOR __attribute__ ((destructor(101)))

#ifdef DYNAMIC_ARCH
gotoblas_t *gotoblas = NULL;


Loading…
Cancel
Save