INT 80H

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Iknow that this is little OT , but i guess this is the best place where i 'll get the exact answer.

mov eax,5 ; the syscall number for open()
; we already have the filename in ebx

mov ecx,0 ; O_RDONLY, defined in fcntl.h

int 80h ; call the kernel

Now my problem is how the system call 80h knows that only eax has the required argument and the second argument is in ecx . Why not the first argument in ecx register ?

thanks in advance
sachin prasad




_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux