3 ms·
Follow-up: not only could they, they did. https://software.intel.com/sites/default/files/managed/7c/f1/253667-sdm-vol-2b.pdf https://software.intel.com/sites/de
by Someone 9y ago
Follow-up: not only could they, they did. https://software.intel.com/sites/default/files/managed/7c/f1/253667-sdm-vol-2b.pdf https://software.intel.com/sites/default/files/managed/7c/f1..., page 4-385:
“Loading the SS register with a POP instruction suppresses or inhibits some debug exceptions and inhibits interrupts on the following instruction boundary. (The inhibition ends after delivery of an exception or the execution of the next instruction.) This behavior allows a stack pointer to be loaded into the ESP register with the next instruction (POP ESP) before an event can be delivered. See Section 6.8.3, “Masking Exceptions and Interrupts When Switching Stacks,” in Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 3A. Intel recommends that software use the LSS instruction to load the SS register and ESP together.”