Changeset 45ce950 in mainline


Ignore:
Timestamp:
2011-05-26T10:05:36Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1e7e78
Parents:
d4c472b
Message:

Remove FPU tests from the kernel. Similar tests should be implemented in user space.
We basically don't want to fiddle with the FPU beyond managing the FPU context of
user threads. Not having C code which explicitly needs FPU instructions, we will now
have greater control of what instructions can the compiler use. We may want to
apply the -mno-fpu globally.

Location:
kernel
Files:
10 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rd4c472b r45ce950  
    329329        endif
    330330       
    331         ifeq ($(CONFIG_FPU),y)
    332                 ifeq ($(KARCH),ia32)
    333                         TEST_FPU1 = y
    334                         TEST_SSE1 = y
    335                         GENERIC_SOURCES += test/fpu/fpu1_x86.c
    336                 endif
    337                
    338                 ifeq ($(KARCH),amd64)
    339                         TEST_FPU1 = y
    340                         TEST_SSE1 = y
    341                         GENERIC_SOURCES += test/fpu/fpu1_x86.c
    342                 endif
    343                
    344                 ifeq ($(KARCH),ia64)
    345                         TEST_FPU1 = y
    346                         GENERIC_SOURCES += test/fpu/fpu1_ia64.c
    347                 endif
    348                
    349                 ifeq ($(KARCH),mips32)
    350                         TEST_MIPS2 = y
    351                 endif
    352         endif
    353        
    354         ifneq ($(TEST_FPU1),y)
    355                 GENERIC_SOURCES += test/fpu/fpu1_skip.c
    356         endif
    357        
    358         ifeq ($(TEST_SSE1),y)
    359                 GENERIC_SOURCES += test/fpu/sse1.c
    360         else
    361                 GENERIC_SOURCES += test/fpu/sse1_skip.c
    362         endif
    363        
    364         ifeq ($(TEST_MIPS2),y)
    365                 GENERIC_SOURCES += test/fpu/mips2.c
    366         else
    367                 GENERIC_SOURCES += test/fpu/mips2_skip.c
    368         endif
    369        
    370331endif
    371332
  • kernel/test/test.c

    rd4c472b r45ce950  
    4343#include <debug/mips1.def>
    4444#include <fault/fault1.def>
    45 #include <fpu/fpu1.def>
    46 #include <fpu/sse1.def>
    47 #include <fpu/mips2.def>
    4845#include <mm/falloc1.def>
    4946#include <mm/falloc2.def>
  • kernel/test/test.h

    rd4c472b r45ce950  
    6161extern const char *test_mips1(void);
    6262extern const char *test_fault1(void);
    63 extern const char *test_fpu1(void);
    64 extern const char *test_sse1(void);
    65 extern const char *test_mips2(void);
    6663extern const char *test_falloc1(void);
    6764extern const char *test_falloc2(void);
Note: See TracChangeset for help on using the changeset viewer.