runtime: add FIPS helper functions

Not entirely sure what they're for, but the Go runtime also stores this
information per goroutine so let's go with that.
This commit is contained in:
Ayke van Laethem
2025-02-18 14:19:46 +01:00
committed by Ron Evans
parent a1be8cd9fe
commit 07c7eff3c3
3 changed files with 19 additions and 0 deletions
+3
View File
@@ -21,6 +21,9 @@ type Task struct {
// state is the underlying running state of the task.
state state
// This is needed for some crypto packages.
FipsIndicator uint8
// DeferFrame stores a pointer to the (stack allocated) defer frame of the
// goroutine that is used for the recover builtin.
DeferFrame unsafe.Pointer