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: b255b2c8 ("util: add cacheinfo") Signed-off-by: NJustin Hibbits <chmeeedalf@gmail.com> Signed-off-by: NLaurent Vivier <laurent@vivier.eu> Tested-by: NJustin Hibbits <chmeeedalf@gmail.com> Message-Id: <20190821082546.5252-2-laurent@vivier.eu>
Showing
想要评论请 注册 或 登录