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
This commit is contained in:
Ian Lepore 2017-12-10 23:06:45 +00:00
parent 45b8a101e7
commit 5fa28b3d97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326754

View File

@ -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);