svn commit: r367355 - head/sys/mips/mips
Justin Hibbits
jhibbits at FreeBSD.org
Wed Nov 4 23:29:28 UTC 2020
Author: jhibbits
Date: Wed Nov 4 23:29:27 2020
New Revision: 367355
URL: https://svnweb.freebsd.org/changeset/base/367355
Log:
Fix UMA alignment for COP2 context structure.
UMA alignment needs specified as (power-of-2) - 1, not power-of-2.
Discussed with: gonzo
MFC after: 3 days
Modified:
head/sys/mips/mips/octeon_cop2.c
Modified: head/sys/mips/mips/octeon_cop2.c
==============================================================================
--- head/sys/mips/mips/octeon_cop2.c Wed Nov 4 23:26:15 2020 (r367354)
+++ head/sys/mips/mips/octeon_cop2.c Wed Nov 4 23:29:27 2020 (r367355)
@@ -46,7 +46,7 @@ octeon_cop2_init(void* dummy)
printf("Create COP2 context zone\n");
ctxzone = uma_zcreate("COP2 context",
sizeof(struct octeon_cop2_state),
- NULL, NULL, NULL, NULL, 8, 0);
+ NULL, NULL, NULL, NULL, UMA_ALIGN_LONG, 0);
}
struct octeon_cop2_state *
More information about the svn-src-all
mailing list