2018-04-11 18:42:03 +00:00
|
|
|
From 33fb6113d65a819496d0b67b8db071fedad845a7 Mon Sep 17 00:00:00 2001
|
2018-04-06 19:38:57 +00:00
|
|
|
From: Matthew Garrett <mjg59@coreos.com>
|
|
|
|
Date: Wed, 23 Mar 2016 16:49:42 -0700
|
2018-04-11 18:42:03 +00:00
|
|
|
Subject: [PATCH 223/229] Fix boot when there's no TPM
|
2018-04-06 19:38:57 +00:00
|
|
|
|
|
|
|
If the firmware has TPM support but has no TPM, we're jumping to core.img
|
|
|
|
without popping the registers back onto the stack. Fix that.
|
|
|
|
|
|
|
|
(cherry picked from commit c2eee36ec08f8ed0cd25b8030276347680be4843)
|
|
|
|
---
|
|
|
|
grub-core/boot/i386/pc/boot.S | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/grub-core/boot/i386/pc/boot.S b/grub-core/boot/i386/pc/boot.S
|
|
|
|
index c1df86dec0b..acab37369ae 100644
|
|
|
|
--- a/grub-core/boot/i386/pc/boot.S
|
|
|
|
+++ b/grub-core/boot/i386/pc/boot.S
|
|
|
|
@@ -473,9 +473,9 @@ LOCAL(copy_buffer):
|
|
|
|
movl $0x8, %edx /* PCR 8 */
|
|
|
|
int $0x1A
|
|
|
|
|
|
|
|
- popa
|
|
|
|
-#endif
|
|
|
|
boot:
|
|
|
|
+ popa
|
|
|
|
+#endif
|
|
|
|
/* boot kernel */
|
|
|
|
jmp *(LOCAL(kernel_address))
|
|
|
|
|
|
|
|
--
|
|
|
|
2.15.0
|
|
|
|
|