flat assembler
Message board for the users of flat assembler.

Index > Linux > System Calls -> Int

Author
Thread Post new topic Reply to topic
gorshing



Joined: 27 Jul 2003
Posts: 72
Location: Okla, US
gorshing 18 Dec 2003, 04:22
I am trying to find anything that will help me figure out what systems are which int

If anybody could point me into the right direction I would appreciate it.

Thanks

_________________
gorshing
Post 18 Dec 2003, 04:22
View user's profile Send private message Visit poster's website Reply with quote
jInuQ



Joined: 26 Jun 2003
Posts: 48
Location: USA - NV
jInuQ 18 Dec 2003, 09:01
Under linux every things is int 0x80. You put the call number in eax.
My project at http://sourceforge.net/projects/pattod/ had all the linux codes ,but it looks like half the project never made it to cvs. Well that sucks. All the eax values can be found in the assembly file in the kernel.

_________________
jInuQ

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away."
- Antoine de Saint Exupery
Post 18 Dec 2003, 09:01
View user's profile Send private message Visit poster's website AIM Address Reply with quote
gorshing



Joined: 27 Jul 2003
Posts: 72
Location: Okla, US
gorshing 18 Dec 2003, 22:25
jInuQ wrote:
in the assembly file in the kernel.


Stupid question .... but what is the extension of the assembly file? I searched for .asm ... but couldn't find anything.

_________________
gorshing
Post 18 Dec 2003, 22:25
View user's profile Send private message Visit poster's website Reply with quote
jInuQ



Joined: 26 Jun 2003
Posts: 48
Location: USA - NV
jInuQ 19 Dec 2003, 01:10
Not so dumb a question. All gas assembly files are .S. I found some sys_call related information that might help. http://www.linuxassembly.org/syscall.html is a link that has the sys_calls. The file you want that has all the sys_calls in it is arch/i386/kernel.entry.S .

The attached file in this topic http://board.flatassembler.net/topic.php?t=55&highlight= has the syscall macros I had been working on. It is not complete ,but give you a stating point.

_________________
jInuQ

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away."
- Antoine de Saint Exupery
Post 19 Dec 2003, 01:10
View user's profile Send private message Visit poster's website AIM Address Reply with quote
gorshing



Joined: 27 Jul 2003
Posts: 72
Location: Okla, US
gorshing 19 Dec 2003, 01:14
Awesome, thanks man

_________________
gorshing
Post 19 Dec 2003, 01:14
View user's profile Send private message Visit poster's website Reply with quote
jInuQ



Joined: 26 Jun 2003
Posts: 48
Location: USA - NV
jInuQ 19 Dec 2003, 06:47
no problem.

_________________
jInuQ

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away."
- Antoine de Saint Exupery
Post 19 Dec 2003, 06:47
View user's profile Send private message Visit poster's website AIM Address Reply with quote
gunblade



Joined: 19 Feb 2004
Posts: 209
gunblade 19 Feb 2004, 20:21
probably a tiny bit late to reply, but just wanted to point out that all the interupt calls to the linux kernel are stored in /usr/include/asm/unistd.h (or similar, depending on where you installed the includes).. in that file, there is a list of lines like such:
#define __NR_open 5
and that shows you what number to put into eax when calling int 0x80 to be able to do different things (eg: that line above is for opening a file, for more info on each, do a man 2 commandname, such as: man 2 open (2 so that it shows you the programmers reference, in case you have a program with the same name as the command))
Post 19 Feb 2004, 20:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.