2008-07-04 Pavel Roskin <proski@gnu.org>

* kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
	prevent warnings.
This commit is contained in:
proski 2008-07-04 03:01:55 +00:00
parent 1759aa57d4
commit af58ab3dbc
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2008-07-04 Pavel Roskin <proski@gnu.org>
* kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
prevent warnings.
* include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
pointer, which can cause warnings. Support 64-bit addresses.

View file

@ -148,7 +148,7 @@ static void grub_claim_heap (void)
as a safegard in case that doesn't happen. It does, however, not protect
us from corrupting our module area, which extends up to a
yet-undetermined region above _end. */
if ((addr < _end) && ((addr + len) > _start))
if ((addr < (grub_addr_t) _end) && ((addr + len) > (grub_addr_t) _start))
{
grub_printf ("Warning: attempt to claim over our own code!\n");
len = 0;
@ -273,5 +273,5 @@ grub_get_rtc (void)
grub_addr_t
grub_arch_modules_addr (void)
{
return ALIGN_UP(_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);
return ALIGN_UP((grub_addr_t) _end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);
}