Can I use rsp as a general-purpose register

I was told that if I use it rspas a general-purpose register, the operating system can unload the registers to where it points in case of interruption, which causes problematic behavior.

Is this true, and if not, then if I do not need a stack, can I use it rspas a general register?

Edit: launch in user space.

+4
source share
1 answer

Aren't you screwed if an interruption occurs?

, DOS, , . , , , , , . ESP, . ESP , , , . , ( ), .

.

Win32 , - . , . , EIP EFLAGS, , . , " " , ESP, .

http://www.virtualdub.org/blog/pivot/entry.php?id=85

+3

Source: https://habr.com/ru/post/1530321/


All Articles