Why so? When we do the call the return address gets pushed and we jump
to the pointer. From then on the (nested) function execution is
standard. It references locations in its frame on the stack for its
local variables, and locations higher up the stack for the enclosing
functions variables. The nested function isn't visible from anywhere
else so the enclosing functions frame must be above it on the stack
and the compiler can generate the right relative offsets for them.
Where does a trampoline come into it?
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/