mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
Fix stack pointer handling in 16-bit relocator.
* grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move grub_relocator16_sp to %esp rather than %ss, and zero-extend it. Fixes Ubuntu bug #683904.
This commit is contained in:
1 parent
9b710a888e
commit
b13f79a427
2 files changed
+9
-1
No files matched your search
@@ -130,7 +130,7 @@ VARIABLE(grub_relocator16_ss)
|
||||
.byte 0xb8
|
||||
VARIABLE(grub_relocator16_sp)
|
||||
.word 0
|
||||
movw %ax, %ss
|
||||
movzwl %ax, %esp
|
||||
|
||||
/* movw imm32, %edx. */
|
||||
.byte 0x66, 0xba
|
||||
|
||||
Reference in new issue
Block a user