From 8d3a5e79b9130f581d5f0419b216fa8a27a7c05a Mon Sep 17 00:00:00 2001 From: okuji Date: Sat, 29 Jul 2000 13:36:15 +0000 Subject: [PATCH] fix a serious bug in the Linux zImage support. --- ChangeLog | 8 ++++++++ stage2/asm.S | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 507e60a58..d47d5af6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-07-29 OKUJI Yoshinori + + The Linux zImage support is working now. + + * stage2/asm.S (linux_boot): Add 3 into %ecx and shift %ecx to + the right by 2 bits, instead of shift %ecx to the left by 2 + bits. + 2000-07-29 Jochen Hoenicke * stage2/fsys_reiserfs.c (block_read): Changed the variable "len" diff --git a/stage2/asm.S b/stage2/asm.S index 0c351377a..2982c1685 100644 --- a/stage2/asm.S +++ b/stage2/asm.S @@ -1698,7 +1698,8 @@ ENTRY(linux_boot) /* copy kernel */ movl EXT_C(linux_text_len), %ecx - shll $2, %ecx + addl $3, %ecx + shrl $2, %ecx movl $LINUX_STAGING_AREA, %esi movl $LINUX_KERNEL, %edi