Date: Sun, 10 Dec 2017 23:06:45 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326754 - head/stand/uboot/lib Message-ID: <201712102306.vBAN6jdL082723@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712102306.vBAN6jdL082723>