flat assembler
Message board for the users of flat assembler.
Index
> Linux > System Calls -> Int |
Author |
|
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 |
|||
18 Dec 2003, 09:01 |
|
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 |
|||
18 Dec 2003, 22:25 |
|
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 |
|||
19 Dec 2003, 01:10 |
|
gorshing 19 Dec 2003, 01:14
Awesome, thanks man
_________________ gorshing |
|||
19 Dec 2003, 01:14 |
|
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 |
|||
19 Dec 2003, 06:47 |
|
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)) |
|||
19 Feb 2004, 20:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.