问题描述
我在虚拟机上使用linux-headers-2.6.32-21
软件包.我要编写一个新的系统调用.我找到了其他文件来写系统调用的首字母,但在arch/x86/kernel/
目录中找不到此syscall_table_32.S
.请帮助我如何以及在哪里可以找到此文件.我怀疑它可能由于权限问题或其他原因而被隐藏.
I am using the linux-headers-2.6.32-21
package on Virtual Machine. I am going to write a new system call. I have found the other files to write initials of system calls but I am unable to find this syscall_table_32.S
in arch/x86/kernel/
directory. Please help me how and where I can find this file. I am doubted that it might be hidden due to permission issues or others.
推荐答案
以下提交将其删除:
commit 303395ac3bf3e2cb488435537d416bc840438fcb
Author: H. Peter Anvin <[email protected]>
Date: Fri Nov 11 16:07:41 2011 -0800
x86: Generate system call tables and unistd_*.h from tables
Generate system call tables and unistd_*.h automatically from the
tables in arch/x86/syscalls. All other information, like NR_syscalls,
is auto-generated, some of which is in asm-offsets_*.c.
This allows us to keep all the system call information in one place,
and allows for kernel space and user space to see different
information; this is currently used for the ia32 system call numbers
when building the 64-bit kernel, but will be used by the x32 ABI in
the near future.
This also removes some gratuitious differences between i386, x86-64
and ia32; in particular, now all system call tables are generated with
the same mechanism.
因为现在syscall表是由脚本arch/x86/syscalls/syscalltbl.sh基于arch/x86/syscalls/syscall_ {32,64} .tbl生成的.
because now syscall table is generated by the script arch/x86/syscalls/syscalltbl.sh, based on arch/x86/syscalls/syscall_{32,64}.tbl.
这篇关于在Linux中找不到syscall_table_32.S文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!