]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 8 Dec 2013 17:10:05 +0000 (18:10 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sun, 8 Dec 2013 17:10:05 +0000 (18:10 +0100)
truncate incomplete lines but instead flushes them.

ChangeLog
grub-core/kern/ia64/efi/init.c

index 6f90aada0e4275e9a6789c15b052dd03a204eb9b..e7b4e9fe14f86ab6bf831a048d8fb8d2767ad08f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
+       truncate incomplete lines but instead flushes them.
+
 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
index 5587d9cd8c07ec2cdb651a188f1dca7e6bb2565b..f00509833f275aa22c44531ad9f1ab328b47e1fd 100644 (file)
@@ -79,6 +79,7 @@ void
 grub_arch_sync_caches (void *address, grub_size_t len)
 {
   /* Cache line length is at least 32.  */
+  len += (grub_uint64_t)address & 0x1f;
   grub_uint64_t a = (grub_uint64_t)address & ~0x1f;
 
   /* Flush data.  */