Multiple bugs correction for Reed-Solomon
This commit is contained in:
parent
419cbeb06d
commit
3ac9e79207
5 changed files with 28 additions and 18 deletions
|
@ -206,16 +206,16 @@ LOCAL (codestart):
|
|||
incl %eax
|
||||
call grub_gate_a20
|
||||
|
||||
movl EXT_C(grub_kernel_image_size), %eax
|
||||
addl EXT_C(grub_total_module_size), %eax
|
||||
movl EXT_C(grub_compressed_size), %edx
|
||||
addl $(GRUB_KERNEL_MACHINE_RAW_SIZE - GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART), %edx
|
||||
movl reed_solomon_redundancy, %ecx
|
||||
leal _start + GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART, %edx
|
||||
testl %eax, %eax
|
||||
leal _start + GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART, %eax
|
||||
testl %edx, %edx
|
||||
jz post_reed_solomon
|
||||
call EXT_C (grub_reed_solomon_recover)
|
||||
jmp post_reed_solomon
|
||||
|
||||
#include "/home/phcoder/compile/grub-core/rs_decoder.S"
|
||||
#include <rs_decoder.S>
|
||||
|
||||
.text
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue