From: Michael Brown Date: Thu, 18 Jan 2007 18:53:32 +0000 (+0000) Subject: Declaring the CPU architecture in the middle of an assembly file is X-Git-Tag: v0.9.3~546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d57cd47a2a0b4a4756fdf4d3f44c93426439b4f;p=thirdparty%2Fipxe.git Declaring the CPU architecture in the middle of an assembly file is somewhat redundant, and also causes gas to complain when we include the profiling code (which uses an i586 instruction). --- diff --git a/src/arch/i386/include/librm.h b/src/arch/i386/include/librm.h index 859249e46..31bafb3ea 100644 --- a/src/arch/i386/include/librm.h +++ b/src/arch/i386/include/librm.h @@ -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"