diff options
author | Justin Hibbits <chmeeedalf@gmail.com> | 2019-08-21 10:25:46 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-09-19 14:42:13 +0200 |
commit | 5ca156cfde0f3821f15988619e51cf3cda99aaa6 (patch) | |
tree | cf44ae7c20a521b6bd0e5bb70cefbcaeab3f819e /util/iova-tree.c | |
parent | 5c95975d8d904f09733999bf77a5b67abe1d39e0 (diff) |
Fix cacheline detection on FreeBSD/powerpc.
machdep.cacheline_size is an integer, not a long. Since PowerPC is
big-endian this causes sysctlbyname() to fill in the upper bits of the
argument, rather than the correct 'lower bits' of the word. Specify the
correct type to fix this.
Fixes: b255b2c8a548 ("util: add cacheinfo")
Signed-off-by: Justin Hibbits <chmeeedalf@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Tested-by: Justin Hibbits <chmeeedalf@gmail.com>
Message-Id: <20190821082546.5252-2-laurent@vivier.eu>
Diffstat (limited to 'util/iova-tree.c')
0 files changed, 0 insertions, 0 deletions