Skip to contentSkip to conversation

docs/zh_CN: add parisc Chinese documents

PATCH Applied Yanteng Si 2 participants 5 messages May 12, 2021 – May 20, 2021

Subsystems (2)
lore
Share & tools
lore

Yanteng Si

author
#0 lore raw

v4 cover docs/zh_CN: add parisc Chinese documents

v3 -> v4:

fix detailed description of the contents of the patch 1/3 and 2/3.

diff:

-This ptch translates Documentation/parisc/index.rst into Chinese. +This patch translates Documentation/parisc/index.rst into Chinese.

-This translates Documentation/parisc/debugging.rst into Chinese. +This patch translates Documentation/parisc/debugging.rst into Chinese.

v2 -> v3

* Pick Xiangcheng Wu's review-by tag for [patch 2-3/3]

v1 -> v2:

* Some bad translations have been modified as suggested by Xiangcheng.Thank you for your review.

    https://lore.kernel.org/linux-doc/[email protected]/T/#t

* Update [PATCH 1/3].
Because zh_CN/inxdex.rst has been refactored by Xiangcheng Wu.

* Pick Xiangcheng Wu's review-by tag for [patch 1/3]

v1:

* This set translates Documentation/parisc/* into Chinese.

Yanteng Si (3):
docs/zh_CN: add parisc index translation docs/zh_CN: add parisc debugging.rst translation docs/zh_CN: add parisc registers.rst translation

 Documentation/translations/zh_CN/index.rst    |   2 +-
 .../translations/zh_CN/parisc/debugging.rst   |  42 +++++
 .../translations/zh_CN/parisc/index.rst       |  28 ++++
 .../translations/zh_CN/parisc/registers.rst   | 153 ++++++++++++++++++
 4 files changed, 224 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/parisc/debugging.rst
 create mode 100644 Documentation/translations/zh_CN/parisc/index.rst
 create mode 100644 Documentation/translations/zh_CN/parisc/registers.rst
Signature · 1 line
2.27.0
author
#1 lore raw

PATCH v4 1/3 docs/zh_CN: add parisc index translation

This patch translates Documentation/parisc/index.rst into Chinese.

---
 Documentation/translations/zh_CN/index.rst    |  2 +-
 .../translations/zh_CN/parisc/index.rst       | 24 +++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/parisc/index.rst
Documentation/translations/zh_CN/index.rst +1 -1
index d56d6b7092e6..420c0a809357 100644
@@ -153,6 +153,7 @@ TODOList:
    arm64/index
    riscv/index
    openrisc/index
+   parisc/index
 
 TODOList:
 
@@ -160,7 +161,6 @@ TODOList:
 * ia64/index
 * m68k/index
 * nios2/index
-* parisc/index
 * powerpc/index
 * s390/index
 * sh/index
Documentation/translations/zh_CN/parisc/index.rst new file +24 -0
new file mode 100644
index 000000000000..ef232d46b1ba
@@ -0,0 +1,24 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: Documentation/parisc/index.rst
+:Translator: Yanteng Si <[email protected]>
+
+.. _cn_parisc_index:
+
+====================
+PA-RISC体系架构
+====================
+
+Todolist:
+
+   debugging
+   registers
+   features
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`
Signature · 1 line
2.27.0
author
#2 lore raw

PATCH v4 2/3 docs/zh_CN: add parisc debugging.rst translation

In reply to Yanteng Si

This patch translates Documentation/parisc/debugging.rst into Chinese.

---
 .../translations/zh_CN/parisc/debugging.rst   | 42 +++++++++++++++++++
 .../translations/zh_CN/parisc/index.rst       |  6 ++-
 2 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/parisc/debugging.rst
Documentation/translations/zh_CN/parisc/debugging.rst new file +42 -0
new file mode 100644
index 000000000000..c21beb986e15
@@ -0,0 +1,42 @@
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: Documentation/parisc/debugging.rst
+:Translator: Yanteng Si <[email protected]>
+
+.. _cn_parisc_debugging:
+
+=================
+调试PA-RISC
+=================
+
+好吧,这里有一些关于调试linux/parisc的较底层部分的信息。
+
+
+1. 绝对地址
+=====================
+
+很多汇编代码目前运行在实模式下,这意味着会使用绝对地址,而不是像内核其他
+部分那样使用虚拟地址。要将绝对地址转换为虚拟地址,你可以在System.map中查
+找,添加__PAGE_OFFSET(目前是0x10000000)。
+
+
+2. HPMCs
+========
+
+当实模式的代码试图访问不存在的内存时,会出现HPMC(high priority machine
+check)而不是内核oops。若要调试HPMC,请尝试找到系统响应程序/请求程序地址。
+系统请求程序地址应该与(某)处理器的HPA(I/O范围内的高地址)相匹配;系统响应程
+序地址是实模式代码试图访问的地址。
+
+系统响应程序地址的典型值是大于__PAGE_OFFSET (0x10000000)的地址,这意味着
+在实模式试图访问它之前,虚拟地址没有被翻译成物理地址。
+
+
+3. 有趣的Q位
+============
+
+某些非常关键的代码必须清除PSW中的Q位。当Q位被清除时,CPU不会更新中断处理
+程序所读取的寄存器,以找出机器被中断的位置——所以如果你在清除Q位的指令和再
+次设置Q位的RFI之间遇到中断,你不知道它到底发生在哪里。如果你幸运的话,IAOQ
+会指向清除Q位的指令,如果你不幸运的话,它会指向任何地方。通常Q位的问题会
+表现为无法解释的系统挂起或物理内存越界。
Documentation/translations/zh_CN/parisc/index.rst +5 -1
index ef232d46b1ba..b913d664e735 100644
@@ -10,9 +10,13 @@
 PA-RISC体系架构
 ====================
 
-Todolist:
+.. toctree::
+   :maxdepth: 2
 
    debugging
+
+Todolist:
+
    registers
    features
 
Signature · 1 line
2.27.0
author
#3 lore raw

PATCH v4 3/3 docs/zh_CN: add parisc registers.rst translation

In reply to Yanteng Si

This patch translates Documentation/parisc/registers.rst into Chinese.

---
 .../translations/zh_CN/parisc/index.rst       |   2 +-
 .../translations/zh_CN/parisc/registers.rst   | 153 ++++++++++++++++++
 2 files changed, 154 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/parisc/registers.rst
Documentation/translations/zh_CN/parisc/index.rst +1 -1
index b913d664e735..a47454ebe32e 100644
@@ -14,10 +14,10 @@ PA-RISC体系架构
    :maxdepth: 2
 
    debugging
+   registers
 
 Todolist:
 
-   registers
    features
 
 .. only::  subproject and html
Documentation/translations/zh_CN/parisc/registers.rst new file +153 -0

153 lines not on this page · raw message

Signature · 1 line
2.27.0
maintainer Applied
#4 lore raw
In reply to Yanteng Si
Quoted 35 lines · Yanteng Si

v3 -> v4:

fix detailed description of the contents of the patch 1/3 and 2/3.

diff:

(quoted diff) +2 -2
-This ptch translates Documentation/parisc/index.rst into Chinese.
+This patch translates Documentation/parisc/index.rst into Chinese.
 
-This translates Documentation/parisc/debugging.rst into Chinese.
+This patch translates Documentation/parisc/debugging.rst into Chinese.

v2 -> v3

* Pick Xiangcheng Wu's review-by tag for [patch 2-3/3]

v1 -> v2:

* Some bad translations have been modified as suggested by Xiangcheng.Thank you for your review.

    https://lore.kernel.org/linux-doc/[email protected]/T/#t

* Update [PATCH 1/3].
Because zh_CN/inxdex.rst has been refactored by Xiangcheng Wu.

* Pick Xiangcheng Wu's review-by tag for [patch 1/3]

v1:

* This set translates Documentation/parisc/* into Chinese.

Yanteng Si (3):
docs/zh_CN: add parisc index translation docs/zh_CN: add parisc debugging.rst translation docs/zh_CN: add parisc registers.rst translation

Quoted 8 lines
 Documentation/translations/zh_CN/index.rst    |   2 +-
 .../translations/zh_CN/parisc/debugging.rst   |  42 +++++
 .../translations/zh_CN/parisc/index.rst       |  28 ++++
 .../translations/zh_CN/parisc/registers.rst   | 153 ++++++++++++++++++
 4 files changed, 224 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/parisc/debugging.rst
 create mode 100644 Documentation/translations/zh_CN/parisc/index.rst
 create mode 100644 Documentation/translations/zh_CN/parisc/registers.rst

I've applied this set, thanks.

jon