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:
parent
45b8a101e7
commit
5fa28b3d97
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user