From: Lukas <blurrpp@yahoo.com>
To: linux-assembly@vger.kernel.org
Subject: Re: sources of linux 'system call'
Date: Thu, 13 Sep 2007 10:52:48 -0700 (PDT) [thread overview]
Message-ID: <248508.35182.qm@web50302.mail.re2.yahoo.com> (raw)
In-Reply-To: <46E2D07C.5010006@comcast.net>
Thank You for answer ... i'll read this sources ...
but actualy i want to know what instructions processor
recive after int. My goal is to understand better GDT,
IDT, LDT in Linux, i want to know what's going on when
i call for example 125 system call (sys_mprotect)
whitch allow me change acces rights to given memory
area. Theory i know ( almost everything is writen in
Intel guides ) but i need practice. By the way if
smoebody knoe how to change acces rigts to memory
without system calls, please help :)
regards
Lukas
--- Joshua Roys <TheReader06@comcast.net> wrote:
> Lukas wrote:
> > Hi.
> > I'm looking for sources of system calls.
> > I mean ... what program is exeecute after I call
> 'int
> > $0x80' :), for example
> >
> > movq $125,%rax # call sys_mprotect
> > movq $smc_address,%rbx
> > movq $0x1000,%rcx
> > movq $7,%rdx
> > int $0x80
> >
> > ?????????????????
> > ?????????????????
> >
> > i want to ask if enybody knows where can i find it
> > (they should be somewhere in kernale source, but i
> > couldn't find it)
> >
> > Regards
> > Lukas
> >
>
> Hi,
>
> Do something like:
>
> ~/sources/linux-2.6.22.y> find . -type f -exec grep
> -H sys_open \{} \;
>
> for the open system call code.. they're all over
> the place, the system
> calls.
>
> sys_open, for example, is in fs/open.c
>
> Good luck,
>
> Joshua Roys
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
next prev parent reply other threads:[~2007-09-13 17:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 16:08 sources of linux 'system call' Lukas
2007-09-08 16:40 ` Joshua Roys
2007-09-13 17:52 ` Lukas [this message]
2007-09-13 18:47 ` Joshua Roys
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=248508.35182.qm@web50302.mail.re2.yahoo.com \
--to=blurrpp@yahoo.com \
--cc=linux-assembly@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;
as well as URLs for NNTP newsgroup(s).