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.
Details
Details
- Reviewers
jhb markj - Commits
- rGacce5fa3dbe8: amd64: remove assertion about sizeof(struct pcb)
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Speaking of this btw, it might be nice to fix other architectures to also pull the pcb out of the kstack in general. Certainly for CHERI we prefer that arrangement.
Comment Actions
(Also, it's probably too hard to do now as so many places like debuggers know the type name, but struct pcb should really be renamed struct tcb... missed that in 5.0-CURRENT :( )
Comment Actions
The amd64 change was made quite a time ago. I do not intent to do it for i386.
Maintainers of other arches have a lot of time. The change would require some asm adjustments, I suspect, I have no realistic way to test it on non-amd64.