* [Alpha/Linux ] Stack layout/and register values for ret_from_sys_call
@ 2001-12-17 18:20 Aneesh Kumar K.V
2001-12-29 0:07 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Aneesh Kumar K.V @ 2001-12-17 18:20 UTC (permalink / raw)
To: linux-kernel
Hi,
Can someone explain me what should be the stack layout and register
value( if there is any restriction ) before calling ret_from_syscall for
Alpha. Again in entry.S i find may places where we make current (
Register 8) as below
lda $8,0x3fff
bic $30,$8,$8
If someone can expain what happens in the above two assembly statement
it will be really helpful.
Thanks in advance.
-aneesh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Alpha/Linux ] Stack layout/and register values for ret_from_sys_call
2001-12-17 18:20 [Alpha/Linux ] Stack layout/and register values for ret_from_sys_call Aneesh Kumar K.V
@ 2001-12-29 0:07 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2001-12-29 0:07 UTC (permalink / raw)
To: Aneesh Kumar K.V; +Cc: linux-kernel
On Mon, Dec 17, 2001 at 11:50:57PM +0530, Aneesh Kumar K.V wrote:
> Can someone explain me what should be the stack layout and register
> value( if there is any restriction ) before calling ret_from_syscall for
> Alpha.
Top of stack should contain a struct pt_regs. See asm/ptrace.h.
> lda $8,0x3fff
> bic $30,$8,$8
>
> If someone can expain what happens in the above two assembly statement
> it will be really helpful.
This computes the value for "current". The stack plus task structure
is aligned on a two-page boundary. See task_union in linux/sched.h.
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-29 0:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-17 18:20 [Alpha/Linux ] Stack layout/and register values for ret_from_sys_call Aneesh Kumar K.V
2001-12-29 0:07 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).