In an arch in which the call stack address decreases as calls are made,
isn't:
®s = stack_base+size of(stack) - size of(struct regs);
an for stacks that increase:
®s = stack_base;
The only time this would not be true, unless I am missing something, is
if the system call is made from kernel space. Is this an issue? Do we
ever need ®s if called from the kernel? If not, can we tell the call
was from the kernel?
comments?
-- George george@mvista.com High-res-timers: http://sourceforge.net/projects/high-res-timers/ Real time sched: http://sourceforge.net/projects/rtsched/ - 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/