Declaring the CPU architecture in the middle of an assembly file is
authorMichael Brown <mcb30@etherboot.org>
Thu, 18 Jan 2007 18:53:32 +0000 (18:53 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 18 Jan 2007 18:53:32 +0000 (18:53 +0000)
somewhat redundant, and also causes gas to complain when we include
the profiling code (which uses an i586 instruction).

src/arch/i386/include/librm.h

index 859249e..31bafb3 100644 (file)
@@ -261,7 +261,6 @@ extern void remove_from_rm_stack ( void *data, size_t size );
 #define TEXT16_CODE( asm_code_str )                    \
        ".section \".text16\", \"ax\", @progbits\n\t"   \
        ".code16\n\t"                                   \
-       ".arch i386\n\t"                                \
        asm_code_str "\n\t"                             \
        ".code32\n\t"                                   \
        ".previous\n\t"