svn commit: r326754 - head/stand/uboot/lib
Ian Lepore
ian at FreeBSD.org
Sun Dec 10 23:06:46 UTC 2017
Author: ian
Date: Sun Dec 10 23:06:45 2017
New Revision: 326754
URL: https://svnweb.freebsd.org/changeset/base/326754
Log:
When building for arm arches, set PKGALIGN to the max cache line size
supported by the arch, to meet u-boot's requirement that I/O be done
in cache-aligned chunks.
PR: 223977
Modified:
head/stand/uboot/lib/libuboot.h
Modified: head/stand/uboot/lib/libuboot.h
==============================================================================
--- head/stand/uboot/lib/libuboot.h Sun Dec 10 23:03:13 2017 (r326753)
+++ head/stand/uboot/lib/libuboot.h Sun Dec 10 23:06:45 2017 (r326754)
@@ -45,9 +45,16 @@ struct uboot_devdesc
#define d_disk d_kind.disk
/*
- * Default network packet alignment in memory
+ * Default network packet alignment in memory. On arm arches packets must be
+ * aligned to cacheline boundaries.
*/
+#if defined(__aarch64__)
+#define PKTALIGN 128
+#elif defined(__arm__)
+#define PKTALIGN 64
+#else
#define PKTALIGN 32
+#endif
int uboot_getdev(void **vdev, const char *devspec, const char **path);
char *uboot_fmtdev(void *vdev);
More information about the svn-src-all
mailing list