Documentation/translations/zh_TW/arch/parisc/registers.rst
Source file repositories/reference/linux-study-clean/Documentation/translations/zh_TW/arch/parisc/registers.rst
File Facts
- System
- Linux kernel
- Corpus path
Documentation/translations/zh_TW/arch/parisc/registers.rst- Extension
.rst- Size
- 6381 bytes
- Lines
- 158
- 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_TW.rst
:Original: Documentation/arch/parisc/registers.rst
:翻譯:
司延騰 Yanteng Si <siyanteng@loongson.cn>
.. _tw_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.