]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_ubi.c
cmd: bootvx: Add asmlinkage to the VxWorks x86 entry
[u-boot] / common / cmd_ubi.c
index cbc10c549474690f9adcb08c4c95d1ba479ed323..0460b4cc56f352581b91c951725d99adb1597c9d 100644 (file)
@@ -14,7 +14,7 @@
 #include <common.h>
 #include <command.h>
 #include <exports.h>
-
+#include <memalign.h>
 #include <nand.h>
 #include <onenand_uboot.h>
 #include <linux/mtd/mtd.h>
@@ -363,7 +363,7 @@ int ubi_volume_read(char *volume, char *buf, size_t size)
        tbuf_size = vol->usable_leb_size;
        if (size < tbuf_size)
                tbuf_size = ALIGN(size, ubi->min_io_size);
-       tbuf = malloc(tbuf_size);
+       tbuf = malloc_cache_aligned(tbuf_size);
        if (!tbuf) {
                printf("NO MEM\n");
                return ENOMEM;