![]() ![]() Open the file /usr/src/linux-2.6.32.5/include/linux/syscalls.hĪdd the following line at the end of the file: " #define NR_syscalls 338" (Since we added a new kernel, so the total number of system calls should be incremented) "#define NR_syscalls 337", then change it to: " #define _NR_newcall 337" at the end of the list. This file contains the system call number that is passed to the kernel through the register (EAX) when a system call is invoked.Īdd "#define _NR_mycall " at the end of the list. (all the system calls will be defined in this file using #define macro) long sys_newcall" (add without double quotes, but the preceding. Testnewcall.c, testnewcall.h (created in /home/pradeepkumar)įind the file /usr/src/linux-2.6.32.5/arch/x86/kernel/syscall_table_32.S and add the following line at the end
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |