Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3323  / 1 Year ago, sat, december 24, 2022, 5:24:50

I want to add a systemcall to Linux, but in training data we need to change the file linux/arch/i386/kernel/entry.S or arch/x86/kernel/syscall_table_32.S. I can not found the files.
I looked and could not find and I have not a folder named i386.
please Help me. is Necessary.


More From » kernel

 Answers
4

First of all you need the source code of the Linux kernel. You can download it at kernel.org or you install the package linux-source from Ubuntu. In the latter case you'll find some patches from Ubuntu applied.



Usually the sources live under /usr/src. If you have unpacked the files there or installed the package, you'll find the tree you mentioned above. So the most recent kernel version has a file called entry_32.S and entry_64.S in the subdirectory arch/x86/kernel. The part after arch has the name x86 and not i386 as you mentioned. If you want to use i386 you should choose a kernel version below 3.7, because i386 was removed from 3.7 on.


[#33711] Monday, December 26, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dresuitable

Total Points: 69
Total Questions: 116
Total Answers: 122

Location: Honduras
Member since Sun, Dec 26, 2021
2 Years ago
dresuitable questions
Sat, May 15, 21, 04:38, 3 Years ago
Fri, Apr 14, 23, 09:53, 1 Year ago
Tue, May 16, 23, 18:13, 1 Year ago
Sun, Apr 24, 22, 12:59, 2 Years ago
;