1. A method comprising: detecting an event at a processor; preserving a state of the processor at the time that the event is detected; establishing a new execution state for performing an operation for a first hardware abstraction layer (HAL) that is between a second HAL and the processor, wherein the second HAL is a processor abstraction layer; initiating, using, at least in part, the first HAL, and responsive to detecting the event, execution of a hardware abstraction flow; and stopping, using, at least in part, the processor, execution of the hardware abstraction flow.