2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>

* mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
This commit is contained in:
phcoder 2009-09-17 11:38:50 +00:00
parent 63f745e857
commit be94a509bb
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
* mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
2009-09-16 Robert Millan <rmh.grub@aybabtu.com> 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
* aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock

View file

@ -368,8 +368,8 @@ grub_cmd_badram (grub_command_t cmd __attribute__ ((unused)),
iterator++) iterator++)
{ {
grub_dprintf ("badram", "%llx (size %llx) is a badram range\n", grub_dprintf ("badram", "%llx (size %llx) is a badram range\n",
(long long) cur, (long long) (1ULL << tail) - 1); (unsigned long long) cur, (1ULL << tail));
grub_mmap_register (cur, (1ULL << tail) - 1, GRUB_MACHINE_MEMORY_HOLE); grub_mmap_register (cur, (1ULL << tail), GRUB_MACHINE_MEMORY_HOLE);
} }
return 0; return 0;
} }