[pso] Tema 1 Linux - Invocare de mana system call
Alexandru Tudose
alexandru.tudose at gmail.com
Fri Mar 16 00:11:27 EET 2007
Am incercat sa chem de mana un system call (20 - getpid) pentru teste, si am
folosit urmatorul cod:
--------------------------
int pid;
__asm__(
"movl $20, %eax \n"
"int 0x80 \n"
"movl %eax, pid \n"
);
---------------------------
Totusi codul nu compileaza din cauza ca nu as fi invocat corect intreruperea
80 pentru a porni syscall-ul pus in eax.
Ma poate ajuta cineva cu un sfat unde gresesc?
Multumesc frumos,
Alexandru Tudose.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070316/5b08b572/attachment.htm
More information about the pso
mailing list