Documentation/translations/zh_CN/arch/parisc/registers.rst
Source file repositories/reference/linux-study-clean/Documentation/translations/zh_CN/arch/parisc/registers.rst
File Facts
- System
- Linux kernel
- Corpus path
Documentation/translations/zh_CN/arch/parisc/registers.rst- Extension
.rst- Size
- 6380 bytes
- Lines
- 157
- Domain
- Support Tooling And Documentation
- Bucket
- Documentation
- Inferred role
- Support Tooling And Documentation: documentation
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
.. include:: ../../disclaimer-zh_CN.rst
:Original: Documentation/arch/parisc/registers.rst
:翻译:
司延腾 Yanteng Si <siyanteng@loongson.cn>
.. _cn_parisc_registers:
=========================
Linux/PA-RISC的寄存器用法
=========================
[ 用星号表示目前尚未实现的计划用途。 ]
ABI约定的通用寄存器
===================
控制寄存器
----------
============================ =================================
CR 0 (恢复计数器) 用于ptrace
CR 1-CR 7(无定义) 未使用
CR 8 (Protection ID) 每进程值*
CR 9, 12, 13 (PIDS) 未使用
CR10 (CCR) FPU延迟保存*
CR11 按照ABI的规定(SAR)
CR14 (中断向量) 初始化为 fault_vector
CR15 (EIEM) 所有位初始化为1*
CR16 (间隔计时器) 读取周期数/写入开始时间间隔计时器
CR17-CR22 中断参数
CR19 中断指令寄存器
CR20 中断空间寄存器
CR21 中断偏移量寄存器
CR22 中断 PSW
CR23 (EIRR) 读取未决中断/写入清除位
CR24 (TR 0) 内核空间页目录指针
CR25 (TR 1) 用户空间页目录指针
CR26 (TR 2) 不使用
CR27 (TR 3) 线程描述符指针
CR28 (TR 4) 不使用
CR29 (TR 5) 不使用
CR30 (TR 6) 当前 / 0
CR31 (TR 7) 临时寄存器,在不同地方使用
============================ =================================
空间寄存器(内核模式)
----------------------
======== ==============================
SR0 临时空间寄存器
SR4-SR7 设置为0
SR1 临时空间寄存器
SR2 内核不应该破坏它
SR3 用于用户空间访问(当前进程)
======== ==============================
空间寄存器(用户模式)
----------------------
======== ============================
SR0 临时空间寄存器
SR1 临时空间寄存器
SR2 保存Linux gateway page的空间
SR3 在内核中保存用户地址空间的值
SR4-SR7 定义了用户/内核的短地址空间
======== ============================
Annotation
- Atlas domain: Support Tooling And Documentation / Documentation.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.