From b9175cf03267c8790e02f49f4655c029a266ffdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 19 Nov 2016 16:39:10 +0200 Subject: [PATCH] UPSTREAM: arch/x86 GDT: Fix orphan debug output On S3 resume path, CBMEM_ID_GDT already exists but we only printed the final "ok" string. Always tell GDT is about to be moved. BUG=None BRANCH=None TEST=None Signed-off-by: Kysti Mlkki Reviewed-on: https://review.coreboot.org/17500 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Change-Id: Ic91c5389cf4d47d28a6c54db152c18541c413bc1 Reviewed-on: https://chromium-review.googlesource.com/413246 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- src/arch/x86/gdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/gdt.c b/src/arch/x86/gdt.c index fe14155dd6..982b8ae9d2 100644 --- a/src/arch/x86/gdt.c +++ b/src/arch/x86/gdt.c @@ -45,9 +45,9 @@ static void move_gdt(int is_recovery) printk(BIOS_ERR, "Error: Could not relocate GDT.\n"); return; } - printk(BIOS_DEBUG, "Moving GDT to %p...", newgdt); memcpy((void*)newgdt, &gdt, num_gdt_bytes); } + printk(BIOS_DEBUG, "Moving GDT to %p...", newgdt); gdtarg.base = (uintptr_t)newgdt; gdtarg.limit = num_gdt_bytes - 1;