[2216] Remove incorrect comment that the code must be position independent.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Pavel Roskin
Revision: 2216
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2216 Author: proski Date: 2009-05-15 14:47:44 +0000 (Fri, 15 May 2009)
Quoted 9 lines
Log Message:
-----------
Remove incorrect comment that the code must be position independent.Modified Paths:
--------------trunk/grub2/commands/i386/pc/drivemap_int13h.S
Function drivemap.c:install_int13_handler() copies the grub_drivemap_handler code to some low memory allocated by grub_mmap_malign_and_register(). No relocation is done. IMO the code must be position independent.
Signature · 1 line
Christian Franke
Quoted 15 lines · Christian Franke
Quoted 4 lines · Pavel Roskin
Revision: 2216
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2216 Author: proski Date: 2009-05-15 14:47:44 +0000 (Fri, 15 May 2009)Quoted 9 lines
Log Message:
-----------
Remove incorrect comment that the code must be position independent.Modified Paths:
--------------trunk/grub2/commands/i386/pc/drivemap_int13h.S
Quoted 4 lines
Function drivemap.c:install_int13_handler() copies the
grub_drivemap_handlercode to some low memory allocated bygrub_mmap_malign_and_register(). No relocation is done. IMO the code must be position independent.
Only the segment is variable, but the offset is always 0. Otherwise, this would be wrong:
movw $INT13H_OFFSET(EXT_C(grub_drivemap_mapstart)), %bx
We would need to get the instruction pointer and add the necessary offset to it, either in the handler or at the install time.
Thanks for fixing the Cygwin problem! And by the way, it's a good thing to know that somebody is looking at the commits!
Signature · 2 lines
Regards, Pavel Roskin