Messages in this thread | | | From | pageexec@freemail ... | Date | Mon, 08 Nov 2004 19:56:26 +0100 | Subject | RE: KSTK_EIP and KSTK_ESP |
| |
> Shouldn't the ESP value pointed to by KSTK_ESP() point to the beginning of > the pt_regs structure for the user space application?
first of all, anything can be on the userland stack at the time the app issued a syscall. but you don't have to bother with the userland stack at all, pt_regs is created on the kernel stack, check out the SAVE_ALL macro (and its uses) in arch/i386/kernel/entry.S .
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |