summaryrefslogtreecommitdiff
path: root/src/arch/x86/gdt.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2019-06-20 14:14:51 +0200
committerFelix Held <felix-coreboot@felixheld.de>2019-06-21 12:49:20 +0000
commit84b5aa3f50bf0874be9554be432ed91bed64802b (patch)
treef8c5fc4c3a8bfcb71c2f66c6c24ebfd8eacc346d /src/arch/x86/gdt.c
parent0f6b51b2de5e53166a7a1e21e5d3f73724219b86 (diff)
downloadcoreboot-84b5aa3f50bf0874be9554be432ed91bed64802b.tar.xz
arch/x86: use ALIGN_UP instead of ALIGN for better readability
This patch contains the rest of the fixes for this subtree; having one change for every area would create an unnecessary amouint of patches. Change-Id: Id92c11d58693292d58cba323c8468db858becfb5 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33630 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86/gdt.c')
-rw-r--r--src/arch/x86/gdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/gdt.c b/src/arch/x86/gdt.c
index c9aec6d111..d3ad01e1df 100644
--- a/src/arch/x86/gdt.c
+++ b/src/arch/x86/gdt.c
@@ -46,7 +46,7 @@ static void move_gdt(int is_recovery)
newgdt = cbmem_find(CBMEM_ID_GDT);
num_gdt_bytes = (uintptr_t)&gdt_end - (uintptr_t)&gdt;
if (!newgdt) {
- newgdt = cbmem_add(CBMEM_ID_GDT, ALIGN(num_gdt_bytes, 512));
+ newgdt = cbmem_add(CBMEM_ID_GDT, ALIGN_UP(num_gdt_bytes, 512));
if (!newgdt) {
printk(BIOS_ERR, "Error: Could not relocate GDT.\n");
return;