Skip to contentSkip to conversation

multiboot can't load freeldr.sys

bug #27100 Vladimir 'phcoder' Serbinenko 2 participants 2 messages Jul 27, 2009 – Jul 28, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 55 lines · Robert Millan

URL:
 <http://savannah.gnu.org/bugs/?27100>

                Summary: [REGRESSION] multiboot can't load freeldr.sys
                Project: GNU GRUB
           Submitted by: robertmh
           Submitted on: Fri Jul 24 19:13:29 2009
               Category: Booting
               Severity: Major
               Priority: 5 - Normal
             Item Group: Software Error
                 Status: None
                Privacy: Public
            Assigned to: None
        Originator Name:
       Originator Email:
            Open/Closed: Open
        Discussion Lock: Any
                Release: trunk
        Reproducibility: Every Time
        Planned Release:

   _______________________________________________________

Details:

Starting with r1760 (the commit that introduced payload relocation), the multiboot loader fails to load freeldr.sys (a Multiboot-aout bootloader included with ReactOS).

This could be an indication that Multiboot-aout in general is not working, or a bug in freeldr.sys (assumption about MBI location).

   _______________________________________________________

Reply to this item at:

 <http://savannah.gnu.org/bugs/?27100>

_______________________________________________
 Message sent via/by Savannah
 http://savannah.gnu.org/

_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
ChangeLog +6 -0
index 752bde8..bb8aff3 100644
@@ -1,3 +1,9 @@
+2009-07-27  Vladimir Serbinenko  <[email protected]>
+
+	* loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
+	Clear direction flag before jumping to OS.
+	(grub_multiboot2_real_boot): Likewise.
+
 2009-07-25  Felix Zielcke  <[email protected]>
 
 	* kern/file.c (grub_file_open): Revert to previous check with
loader/i386/multiboot_helper.S +3 -0
index d7539f1..d109458 100644
@@ -71,6 +71,7 @@ VARIABLE(grub_multiboot_backward_relocator)
 	rep
 	movsb
 
+	cld
 	jmp	*%edx
 VARIABLE(grub_multiboot_backward_relocator_end)
 
@@ -112,4 +113,6 @@ FUNCTION(grub_multiboot2_real_boot)
         /* Move the magic value into eax and jump to the kernel.  */
         movl    $MULTIBOOT2_BOOTLOADER_MAGIC,%eax
         popl    %ecx
+
+        cld
         jmp     *%ecx
#2 lore raw
Quoted 27 lines · Vladimir 'phcoder' Serbinenko
ChangeLog +6 -0
index 752bde8..bb8aff3 100644
@@ -1,3 +1,9 @@
+2009-07-27  Vladimir Serbinenko  <[email protected]>
+
+	* loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
+	Clear direction flag before jumping to OS.
+	(grub_multiboot2_real_boot): Likewise.
+
 2009-07-25  Felix Zielcke  <[email protected]>
 
 	* kern/file.c (grub_file_open): Revert to previous check with
loader/i386/multiboot_helper.S +1 -0
index d7539f1..d109458 100644
@@ -71,6 +71,7 @@ VARIABLE(grub_multiboot_backward_relocator)
 	rep
 	movsb
 
+	cld
 	jmp	*%edx
 VARIABLE(grub_multiboot_backward_relocator_end)
 

loader/i386/multiboot_helper.S FUNCTION(grub_multiboot2_real_boot) · line 118

Quoted 6 lines
loader/i386/multiboot_helper.S +2 -0
@@ -112,4 +113,6 @@ FUNCTION(grub_multiboot2_real_boot)
         /* Move the magic value into eax and jump to the kernel.  */
         movl    $MULTIBOOT2_BOOTLOADER_MAGIC,%eax
         popl    %ecx
+
+        cld
         jmp     *%ecx

Thanks Vladimir. Please go ahead, nice work.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."