From: Dan A. <da...@gm...> - 2004-02-26 17:53:16
|
On Thu, Feb 26, 2004 at 09:34:21PM +0600, Dmitriy Kazimirow wrote: > +++ colinux-20040225/src/Makefile 2004-02-25 08:13:22.000000000 +0600 > @@ -81,7 +81,7 @@ > > HOST_API_CFLAGS=-DCO_HOST_API > > -AR=i586-pc-cygwin-ar > +AR=i686-pc-cygwin-ar > >[snip] > > ifeq ($(COLINUX_ARCH),i386) > -CROSS_TARGET=i586-pc-cygwin- > +CROSS_TARGET=i686-pc-cygwin- > else > $(error Other Windows architectures not supported yet!) > endif > diff -r -u colinux-20040225.k6/src/colinux/os/winnt/build/Makefile colinux-20040225/src/colinux/os/winnt/build/Makefile > --- colinux-20040225.k6/src/colinux/os/winnt/build/Makefile 2004-02-26 03:29:09.109092800 +0600 > +++ colinux-20040225/src/colinux/os/winnt/build/Makefile 2004-02-25 05:21:30.000000000 +0600 > @@ -24,7 +24,7 @@ > > CLEAN_FILES += $(BUILD_PATH)/driver.base.tmp > $(BUILD_PATH)/driver.base.tmp: $(BUILD_PATH)/driver.o > - i586-pc-cygwin-gcc -Wl,--base-file,$@ \ > + i686-pc-cygwin-gcc -Wl,--base-file,$@ \ > -Wl,--entry,_DriverEntry@8 \ > -nostartfiles -nostdlib \ > -o junk.tmp $^ -lntoskrnl -lhal -lgcc > @@ -32,12 +32,12 @@ The prefix of the cygwin's tool chain executables denotes about the platform of the compiler and not about the code it produces, e.g, you can compile an i686 code by passing -march=i686 to i586-pc-cygwin-gcc and compile an i586 code by passing -march=i586 to i686-pc-cygwin-gcc. AFAIK, the default compilation target is i386 unless specified otherwise. Both the Windows driver and userspace supplied with the binary distribution of coLinux are compiled without any '-march='-style parameters meaning that they are compatible with i386. So, the meaningful part in your patch is the where you replace fx* instructions with f*. I plan for future versions of coLinux to detect whether fxsave can be used or not and then choose the right passage page code. Another remark is that the vmlinux file distributed with coLinux versions up to 0.5.4 was compiled with -march=i386. In 0.5.4, it was compiled with -march=i686. This change will be reverted in the next versions. -- Dan Aloni da...@gm... |