gpt4 book ai didi

linux - 无法在 linux 中找到 syscall_table_32.S 文件

转载 作者:IT王子 更新时间:2023-10-29 01:27:19 25 4
gpt4 key购买 nike

我在虚拟机上使用 linux-headers-2.6.32-21 包。我要写一个新的系统调用。我找到了其他文件来写系统调用的首字母,但我无法在 arch/x86/kernel/ 目录中找到这个 syscall_table_32.S。请帮助我如何以及在何处找到此文件。怀疑是不是权限问题或者其他原因被隐藏了。

最佳答案

以下提交将其删除:

commit 303395ac3bf3e2cb488435537d416bc840438fcb
Author: H. Peter Anvin <hpa@linux.intel.com>
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.

因为现在系统调用表是由脚本arch/x86/syscalls/syscalltbl.sh生成的,基于arch/x86/syscalls/syscall_{32,64}.tbl。

关于linux - 无法在 linux 中找到 syscall_table_32.S 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14534013/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com