]> Zhao Yanbai Git Server - minix.git/commitdiff
Avoid use of C++ reserved word class in headers (reported by Aki Goto, tracker item...
authorErik van der Kouwe <erik@minix3.org>
Thu, 27 May 2010 09:18:49 +0000 (09:18 +0000)
committerErik van der Kouwe <erik@minix3.org>
Thu, 27 May 2010 09:18:49 +0000 (09:18 +0000)
commands/service/service.c
lib/csu/i386/crtso.S

index 4acbc7415f5f2ead78f863eb04aa0101ac4e6457..8ff08c2c817be05d19e75e76cbf5eacdeb88492a 100644 (file)
@@ -692,7 +692,7 @@ PRIVATE void do_pci_class(config_t *cpe)
                        fatal("do_pci_class: too many class IDs (max %d)",
                                RS_NR_PCI_CLASS);
                }
-               rs_start.rss_pci_class[rs_start.rss_nr_pci_class].class=
+               rs_start.rss_pci_class[rs_start.rss_nr_pci_class].pciclass=
                        class_id;
                rs_start.rss_pci_class[rs_start.rss_nr_pci_class].mask= mask;
                rs_start.rss_nr_pci_class++;
index 4bc54928cd32a218c246b0dfa99b9b80248f8616..599d499664469968e453d68ed7bbbeff4e71946d 100644 (file)
@@ -23,7 +23,7 @@ begdata:
 .bss
 begbss:
 
-.globl crtso, __penviron, __penvp, __fpu_present
+.globl crtso, __penviron, __penvp
 .globl __minix_datastart, __minix_mainjump, __minix_unmapzero
 .extern        _main, _exit
 
@@ -61,11 +61,6 @@ crtso:
        push    %edx    /* push argv */
        push    %eax    /* push argc */
 
-/* Test the EM bit of the MSW to determine if an FPU is present and */
-/* set __fpu_present if one is found. */
-       smsw    %ax
-       testb   $0x4, %al       /* EM bit in MSW */
-       sete    __fpu_present   /* True if not set */
        jmp     __minix_mainjump
 
 .balign I386_PAGE_SIZE
@@ -116,6 +111,5 @@ __penviron:
 
 .bss
 .lcomm __penvp, 4      /* Hidden environment vector */
-.lcomm __fpu_present, 4        /* FPU present flag */
 
 .extern        endtext /* Force loading of end labels. */