Linus Torvalds writes: (Summary)
No.
No.
The kernel entry is not the usual function call.
The kernel entry is not the usual function call.
On kernel entry, *all* registers are callee-saved.
On kernel entry, *all* registers are callee-saved.
Of course, some may be return values, and I have a slight hope that I can trash %eflags. In fact, the arguments are in different registers depending on just *which* system call you take.
on just *which* system call you take.
Linus
Linus
Linus
No.
The kernel entry is not the usual function call.
The kernel entry is not the usual function call.
On kernel entry, *all* registers are callee-saved.
On kernel entry, *all* registers are callee-saved.
Of course, some may be return values, and I have a slight hope that I can trash %eflags. In fact, the arguments are in different registers depending on just *which* system call you take.
on just *which* system call you take.
Linus
Linus
Linus