linux - Linux 内核源代码中 _PAGE_OFFSET 值定义的位置

标签 linux linux-kernel bootstrapper

从我的 linux 内核链接器文件 (vmlinux.lds) 我开始知道 _PAGE_OFFSET 的值是 0xc0000000 但出于某些原因我想更改这个值但无法找出这个值来自哪个宏。

所以我想知道 _PAGE_OFFSET 的值来自哪个文件。

最佳答案

“下划线”前缀的是特定于体系结构的,并且只存在于几个体系结构中。它们在 arch 目录中,例如:

arch/x86/include/asm/page_32_types.h

一般来说,你不应该使用它们——而应该使用更通用的:

PAGE_OFFSET

它在所有架构类型中定义,在:

include/asm-generic/page.h

关于linux - Linux 内核源代码中 _PAGE_OFFSET 值定义的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15526538/

相关文章:

xcode - autoconf : command not found Installing Cappuccino (Objective J)

linux - 即使管理员将屏幕的 chmod 更改为 700 或 777,如何继续运行屏幕命令

linux - 内存泄漏会导致 getaddrinfo EMFILE

linux - Sed 完全匹配

twitter-bootstrap - 在 BootStrap Container Dive 中将 .well Div 居中

.net - Bootstrapper 先决条件排序

linux - 在Linux中使用正则表达式重命名文件

Linux 上的 Java Runtime.exec() 参数

Linux x86 : Where is the real mode address space mapped to in protected kernel mode?

c - Linux SPARSEMEM 内存模型真的很稀疏吗?