aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/boot/header.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
index 2ed8f0c25def..1bb08ecffd24 100644
--- a/arch/x86/boot/header.S
+++ b/arch/x86/boot/header.S
@@ -520,8 +520,14 @@ pref_address: .quad LOAD_PHYSICAL_ADDR # preferred load addr
520# the description in lib/decompressor_xxx.c for specific information. 520# the description in lib/decompressor_xxx.c for specific information.
521# 521#
522# extra_bytes = (uncompressed_size >> 12) + 65536 + 128 522# extra_bytes = (uncompressed_size >> 12) + 65536 + 128
523#
524# LZ4 is even worse: data that cannot be further compressed grows by 0.4%,
525# or one byte per 256 bytes. OTOH, we can safely get rid of the +128 as
526# the size-dependent part now grows so fast.
527#
528# extra_bytes = (uncompressed_size >> 8) + 65536
523 529
524#define ZO_z_extra_bytes ((ZO_z_output_len >> 12) + 65536 + 128) 530#define ZO_z_extra_bytes ((ZO_z_output_len >> 8) + 65536)
525#if ZO_z_output_len > ZO_z_input_len 531#if ZO_z_output_len > ZO_z_input_len
526# define ZO_z_extract_offset (ZO_z_output_len + ZO_z_extra_bytes - \ 532# define ZO_z_extract_offset (ZO_z_output_len + ZO_z_extra_bytes - \
527 ZO_z_input_len) 533 ZO_z_input_len)