diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-03-19 03:43:01 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-03-20 22:48:42 +0000 |
| commit | acce5fa3dbe87ea953fb5060a03859e424398db8 (patch) | |
| tree | f9a5ff0f5be17d22612a095e830bd99567f9f39a | |
| parent | 6275cd73aca7f31cbb3b9da2d031f6664814d58c (diff) | |
amd64: remove assertion about sizeof(struct pcb)
We no longer put pcb on stack, it is part of the struct thread.
Similarly, we do not put user fpu save area on stack. There is no
constraints on the pcb size due to the XSAVE area required alignment.
Reviewed by: jhb, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D55931
| -rw-r--r-- | sys/amd64/amd64/fpu.c | 7 |
1 files changed, 0 insertions, 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 @@ -144,13 +144,6 @@ 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. */ |
