1. A method for recovering states of a register-stack and a processor following execution of a cover instruction by unprivileged code, the method comprising: executing in a context of an original stack frame allocated on the register stack; prior to executing the cover instruction, storing a description of the original stack frame in memory; executing the cover instruction; and subsequently, re-initializing the register stack; and allocating a new stack frame equivalent to the original stack frame.