|
|
f96e0b |
From a074aa6ad158c90a065d5b9f7727a07254f0e6b2 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Mon, 21 Jan 2013 22:44:20 +0100
|
|
|
f96e0b |
Subject: [PATCH 139/482] * include/grub/kernel.h (FOR_MODULES): Adjust
|
|
|
f96e0b |
to preserve alignment invariants.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 5 +++++
|
|
|
f96e0b |
include/grub/kernel.h | 2 +-
|
|
|
f96e0b |
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index a2edbc5..c3405df 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,3 +1,8 @@
|
|
|
f96e0b |
+2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+ * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
|
|
|
f96e0b |
+ invariants.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
2013-01-21 Colin Watson <cjwatson@ubuntu.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
* grub-core/font/font.c (blit_comb: do_blit): Make static instead of
|
|
|
f96e0b |
diff --git a/include/grub/kernel.h b/include/grub/kernel.h
|
|
|
f96e0b |
index 033479e..23e4f02 100644
|
|
|
f96e0b |
--- a/include/grub/kernel.h
|
|
|
f96e0b |
+++ b/include/grub/kernel.h
|
|
|
f96e0b |
@@ -78,7 +78,7 @@ extern grub_addr_t EXPORT_VAR (grub_modbase);
|
|
|
f96e0b |
var && (grub_addr_t) var \
|
|
|
f96e0b |
< (grub_modbase + (((struct grub_module_info *) grub_modbase)->size)); \
|
|
|
f96e0b |
var = (struct grub_module_header *) \
|
|
|
f96e0b |
- ((void **) var + (((struct grub_module_header *) var)->size + sizeof (void *) - 1) / sizeof (void *)))
|
|
|
f96e0b |
+ (((grub_uint32_t *) var) + ((((struct grub_module_header *) var)->size + sizeof (grub_addr_t) - 1) / sizeof (grub_addr_t)) * (sizeof (grub_addr_t) / sizeof (grub_uint32_t))))
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_addr_t grub_modules_get_end (void);
|
|
|
f96e0b |
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|