From: "Aneesh Kumar K.V" <aneesh.kumar@digital.com>
To: debian-alpha <debian-alpha@lists.debian.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: filling up pt_regs by myself
Date: 03 Dec 2001 17:45:30 +0530 [thread overview]
Message-ID: <1007381730.1800.14.camel@satan.xko.dec.com> (raw)
Hi,
Is there any functions that i can use to setup pt_regs structure
myself.
For example how can I take a following i386 system call to alpha
sys_mycall( struct pt_regs regs)
{
my_function( ®s);
}
I tried to do it same way . But then the value of members of regs
structure that i am getting are corrupted. Later looking into the
source i found that for most of alpha system call is defined something
like
sys_mycall( arg1, arg2, arg3.....)
So i replaced the above function definition with
sys_mycall( argument1, argument 2 argument ) here consider it takes
only three arguments ...
But now how i will pass the regs structure to my_function . Is there any
already existing function that help me to do that something like
save_regs(®s) ? Or do i need to hand code all the saving by itself.
Can I use SAVE_ALL #define defined in entry.S .
Thanks in advance .
-aneesh
next reply other threads:[~2001-12-04 3:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 12:15 Aneesh Kumar K.V [this message]
2001-12-04 20:08 ` filling up pt_regs by myself george anzinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1007381730.1800.14.camel@satan.xko.dec.com \
--to=aneesh.kumar@digital.com \
--cc=debian-alpha@lists.debian.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox