aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-05-12 10:09:33 +0100
committerMichael Brown <mcb30@ipxe.org>2021-05-12 10:09:33 +0100
commit13c1abe10abd1c24307a6777b6cedfc5b46b088d (patch)
treef384419c11fe211239aa9ee1fb57abd5b3fddd28
parent866fa1ce7639c93de8905cf16ab79b8086990728 (diff)
downloadipxe-13c1abe10abd1c24307a6777b6cedfc5b46b088d.zip
ipxe-13c1abe10abd1c24307a6777b6cedfc5b46b088d.tar.gz
ipxe-13c1abe10abd1c24307a6777b6cedfc5b46b088d.tar.bz2
[prefix] Specify i486 architecture for LZMA decompressor
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>
-rw-r--r--src/arch/x86/prefix/unlzma.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/prefix/unlzma.S b/src/arch/x86/prefix/unlzma.S
index 956eeb2..979f699 100644
--- a/src/arch/x86/prefix/unlzma.S
+++ b/src/arch/x86/prefix/unlzma.S
@@ -44,7 +44,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
.text
- .arch i586
+ .arch i486
.section ".prefix.lib", "ax", @progbits
#ifdef CODE16