git: 504b27e67dee - stable/15 - amd64: remove assertion about sizeof(struct pcb)

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 27 Mar 2026 01:52:28 UTC
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=504b27e67dee9e1e024b4dc82daa330badcf6551

commit 504b27e67dee9e1e024b4dc82daa330badcf6551
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-03-19 03:43:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-26 23:42:56 +0000

    amd64: remove assertion about sizeof(struct pcb)
    
    (cherry picked from commit acce5fa3dbe87ea953fb5060a03859e424398db8)
---
 sys/amd64/amd64/fpu.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c
index 48bfaa53c7b4..11f9c5b98134 100644
--- a/sys/amd64/amd64/fpu.c
+++ b/sys/amd64/amd64/fpu.c
@@ -143,13 +143,6 @@ CTASSERT(sizeof(struct savefpu) == 512);
 CTASSERT(sizeof(struct xstate_hdr) == 64);
 CTASSERT(sizeof(struct savefpu_ymm) == 832);
 
-/*
- * This requirement is to make it easier for asm code to calculate
- * offset of the fpu save area from the pcb address. FPU save area
- * must be 64-byte aligned.
- */
-CTASSERT(sizeof(struct pcb) % XSAVE_AREA_ALIGN == 0);
-
 /*
  * Ensure the copy of XCR0 saved in a core is contained in the padding
  * area.