From 2c3840b563a453eb6f311cdc20ff7dd1ef365665 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 30 Sep 1998 20:58:39 +0000 Subject: Added new autoconf test for i386 code16/code32 support. The guts of the test were suggested by Ian Taylor and Joel did the hard part of putting it in aclocal and editting all the offending Makefiles and source code which could use this feature. --- c/src/lib/libbsp/i386/i386ex/start/Makefile.in | 5 ++++- c/src/lib/libbsp/i386/i386ex/start/start.s | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'c/src/lib/libbsp/i386/i386ex/start') diff --git a/c/src/lib/libbsp/i386/i386ex/start/Makefile.in b/c/src/lib/libbsp/i386/i386ex/start/Makefile.in index 388e25b482..985de4574c 100644 --- a/c/src/lib/libbsp/i386/i386ex/start/Makefile.in +++ b/c/src/lib/libbsp/i386/i386ex/start/Makefile.in @@ -7,6 +7,7 @@ srcdir = @srcdir@ VPATH = @srcdir@ RTEMS_ROOT = @top_srcdir@ PROJECT_ROOT = @PROJECT_ROOT@ +RTEMS_GAS_CODE16 = @RTEMS_GAS_CODE16@ PGMS=${ARCH}/start.o @@ -32,7 +33,9 @@ include $(RTEMS_ROOT)/make/leaf.cfg # (OPTIONAL) Add local stuff here using += # -DEFINES += +ifeq ($(RTEMS_GAS_CODE16),yes) +DEFINES += -DNEXT_GAS +endif CPPFLAGS += CFLAGS += diff --git a/c/src/lib/libbsp/i386/i386ex/start/start.s b/c/src/lib/libbsp/i386/i386ex/start/start.s index 55fcb1ae82..4fb50af7df 100644 --- a/c/src/lib/libbsp/i386/i386ex/start/start.s +++ b/c/src/lib/libbsp/i386/i386ex/start/start.s @@ -40,12 +40,9 @@ changes: #include "80386ex.inc" /* - * Needed for binutils 2.9.1.0.7 and higher - * #define NEXT_GAS + * NEXT_GAS Needed for binutils 2.9.1.0.7 and higher */ -#define NEXT_GAS - EXTERN (boot_card) /* exits to bspstart */ EXTERN (stack_start) /* defined in startup/linkcmds */ EXTERN (Clock_exit) -- cgit v1.2.3