Can anyone think of a way to save and restore an additional cpu state
variable during a context switch without modifying the target operating
system? Basically I would like to add a variable to the CPUState
structure that is saved and restored with the registers.