From 01db2f5461b88da81cf269639a91411a960da9cc Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Wed, 4 Nov 2020 23:29:27 +0000 Subject: [PATCH] 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 --- sys/mips/mips/octeon_cop2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/mips/octeon_cop2.c b/sys/mips/mips/octeon_cop2.c index ab7308cf06d..4d76643c618 100644 --- a/sys/mips/mips/octeon_cop2.c +++ b/sys/mips/mips/octeon_cop2.c @@ -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 *