]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[prefix] Specify i486 architecture for LZMA decompressor
authorMichael Brown <mcb30@ipxe.org>
Wed, 12 May 2021 09:09:33 +0000 (10:09 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 12 May 2021 09:09:33 +0000 (10:09 +0100)
The decompressor uses the i486 "bswap" instruction, but does not
require any instructions that exist only on i586 or above.  Update the
".arch" directive to reflect the requirements of the code as
implemented.

Reported-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/prefix/unlzma.S

index 956eeb24cd9852c94bb5f35c016376ba2fe9f6f8..979f699eeeb83c87034434cc200fe8bdb7fc7a7d 100644 (file)
@@ -44,7 +44,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  */
 
        .text
-       .arch i586
+       .arch i486
        .section ".prefix.lib", "ax", @progbits
 
 #ifdef CODE16