CPC G06F 9/547 (2013.01) [G06F 9/461 (2013.01); G06F 9/5016 (2013.01); G06F 9/544 (2013.01)] | 15 Claims |
1. An apparatus comprising:
memory circuitry; and
processor circuitry communicatively coupled to the memory circuitry, the processor circuitry to:
responsive to a call by an operating system (OS) update application using an operating system (OS) stack to execute a boot function included with a boot loader application using a boot stack:
determine whether the stack pointer register points to the OS stack or points to the boot stack;
responsive to the determination that the stack pointer register points to the OS stack:
copy first data values from the OS stack to the boot stack;
transition the stack pointer register to point from the OS stack to the boot stack; and
execute the boot function using the boot stack and the first data values copied from the OS stack; and
responsive to completion of the boot function:
copy second data values generated by the execution of the boot function using the boot stack from the boot stack to the OS stack;
transition the stack pointer register from the boot stack to point to the OS stack; and
continue execution of the OS update application using the OS stack and the second data values copied from the boot stack.
|