summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2021-05-12 11:09:33 +0200
committerMichael Brown2021-05-12 11:09:33 +0200
commit13c1abe10abd1c24307a6777b6cedfc5b46b088d (patch)
treef384419c11fe211239aa9ee1fb57abd5b3fddd28
parent[gzip] Add support for gzip archive images (diff)
downloadipxe-13c1abe10abd1c24307a6777b6cedfc5b46b088d.tar.gz
ipxe-13c1abe10abd1c24307a6777b6cedfc5b46b088d.tar.xz
ipxe-13c1abe10abd1c24307a6777b6cedfc5b46b088d.zip
[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 956eeb24c..979f699ee 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