Linux 1.2.13 and GCC 2.7.1

Linux 1.2.13 and GCC 2.7.1

Post by Leonard N. Zubkof » Fri, 17 Nov 1995 04:00:00



The following patch is necessary to get Linux 1.2.13 to compile using the
newly released GCC 2.7.1.  I haven't verified that the kernel actually
works properly, just that the compile now succeeds.  Note that I am not an
expert on GCC's __asm__ magic, but I noticed that the necessary change had
already been made in 1.3.x.

                Leonard

--- ./linux/include/asm-i386/io.h-      Mon Aug 15 00:56:19 1994

 #define __OUT(s,s1,x) \
 __OUT1(s,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); } \
-__OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); } \
+__OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); } \
 __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); SLOW_DOWN_IO; } \
-__OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); SLOW_DOWN_IO; }
+__OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }

 #define __IN1(s) \

 #define __IN(s,s1,i...) \
 __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \
-__IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); return _v; } \
+__IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \
 __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \
-__IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); SLOW_DOWN_IO; return _v; }
+__IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; }

 #define __INS(s) \
 extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \

 
 
 

1. strange problems 1.2.13 --> 2.0.0 --> 1.2.13

Hi,

I have some strange problems with the new kernel source tree...

after the installation of the new sysvinit-2.62 the linux-2.0.0 kernel
complains sh:/bin/bash cannot execute...
with 1.99.7 this works fine
and at least I'm totally unable to recompile the 1.2.13 source tree due
some strange asm errors in main occurring in asm/io.h referenced by
bugs.h  (also within the asm tree). Of course I checked the appropriate
links to for the linux source tree /usr/include/linux
                                                asm

Please help....
 Michael

-------------------------------------------------------------------------------
        Michael Rietz                   |       Office: 13

        Werner Heisenberg Institut      |       phone:+49-(0)89-32354-242,
        Foehringer Ring 6               |                             415,411
        D-80805 Muenchen                |       fax:    +49 (0)89 3226704
                                        |
                            is there anybody OUT there...
-------------------------------------------------------------------------------

2. Backspace doesn't work in X

3. Red Hat Picasso Linux (Kernel 1.2.13) - Want to make a.out in GCC

4. missing header for net support!

5. linux 1.2.13 and gcc 2.7.2 #!@##$!@!

6. ACK! Lost some files!

7. GCC 2.7.2 unable to compile Linux 1.2.13?

8. Kernel Panic installing Red Hat

9. SOS Linux 1.2.13 and GCC 2.7.2

10. ANSWER for linux 1.2.13 and gcc recompile in elf!!!!!

11. Compiling linux 1.2.13 kernel with gcc 2.7.2

12. gcc 2.7.1 and linux 1.2.13

13. Troubles compiling Linux kernel 1.2.13 with GCC 2.7.2