there is no description for "user" and "login".
2. Important: There is one issue when the swapper is implemented.
There are several places where the return values of system calls are
placed in the stack. Students tend to precalculate the value of Physical
SP and store in a register and place the return value to this location.
(There could be several cases - if some error condition is there, then
-1 could be returned etc.).
Now, if a process is swapped out and then swapped back, the stack page
could be relocated to a new physical page and the PhysicalSP value will
be different.
We need to add a note somewhere about this fact.
The issue was reported from IITPKD.
Murali