public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Universal Regs address
@ 2002-02-25 21:05 george anzinger
  0 siblings, 0 replies; only message in thread
From: george anzinger @ 2002-02-25 21:05 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

&regs is needed by the deliver signal code and currently is supplied by
the system call interface to the system calls that need it.  This
requires that any new system call to have (at least in some archs)
special code in the system call trap area to pass the &regs, or does it?

In an arch in which the call stack address decreases as calls are made,
isn't:

&regs = stack_base+size of(stack) - size of(struct regs);

an for stacks that increase:

&regs = 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 &regs 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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-25 21:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-25 21:05 Universal Regs address george anzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox