* include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment

invariants.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-01-21 22:44:20 +01:00
parent d44892fed9
commit 1c22ca9a69
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
invariants.
2013-01-21 Colin Watson <cjwatson@ubuntu.com> 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
* grub-core/font/font.c (blit_comb: do_blit): Make static instead of * grub-core/font/font.c (blit_comb: do_blit): Make static instead of

View file

@ -78,7 +78,7 @@ extern grub_addr_t EXPORT_VAR (grub_modbase);
var && (grub_addr_t) var \ var && (grub_addr_t) var \
< (grub_modbase + (((struct grub_module_info *) grub_modbase)->size)); \ < (grub_modbase + (((struct grub_module_info *) grub_modbase)->size)); \
var = (struct grub_module_header *) \ var = (struct grub_module_header *) \
((void **) var + (((struct grub_module_header *) var)->size + sizeof (void *) - 1) / sizeof (void *))) (((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))))
grub_addr_t grub_modules_get_end (void); grub_addr_t grub_modules_get_end (void);