summaryrefslogtreecommitdiff
path: root/libre/grub2/fix_stack_pointer_handling_16_relocator.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-01 19:14:30 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-01 19:14:30 -0300
commitb1dae9aeffb64b11071e2b3a8cfc2bb80972bc32 (patch)
tree353c09738a9f67169559744112b7e0f650118504 /libre/grub2/fix_stack_pointer_handling_16_relocator.patch
parentc4cc142235d7d77327c2a53d9efb2750b1ec80bf (diff)
parenta1ad226cb3556f648d9313dbcaf2ea0a4b185935 (diff)
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'libre/grub2/fix_stack_pointer_handling_16_relocator.patch')
-rw-r--r--libre/grub2/fix_stack_pointer_handling_16_relocator.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/libre/grub2/fix_stack_pointer_handling_16_relocator.patch b/libre/grub2/fix_stack_pointer_handling_16_relocator.patch
new file mode 100644
index 000000000..edc0ef502
--- /dev/null
+++ b/libre/grub2/fix_stack_pointer_handling_16_relocator.patch
@@ -0,0 +1,13 @@
+diff --git a/grub-core/lib/i386/relocator16.S b/grub-core/lib/i386/relocator16.S
+index c3768f4..982415d 100644
+--- a/grub-core/lib/i386/relocator16.S
++++ b/grub-core/lib/i386/relocator16.S
+@@ -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