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 *
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"