[PATCH 2/2] docs/zh_TW: Add translation for riscv/vm-layout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Leo Yu-Chi Liang <ycliang@xxxxxxxxxxxxxx>

Add Traditional Chinese for Documentation/riscv/vm-layout.rst

Signed-off-by: Leo Yu-Chi Liang <ycliang@xxxxxxxxxxxxxx>
---
 .../translations/zh_TW/riscv/vm-layout.rst    | 67 +++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 Documentation/translations/zh_TW/riscv/vm-layout.rst

diff --git a/Documentation/translations/zh_TW/riscv/vm-layout.rst b/Documentation/translations/zh_TW/riscv/vm-layout.rst
new file mode 100644
index 000000000000..628bba3f139d
--- /dev/null
+++ b/Documentation/translations/zh_TW/riscv/vm-layout.rst
@@ -0,0 +1,67 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../disclaimer-zh_TW.rst
+
+:Original: Documentation/riscv/patch-acceptance.rst
+
+:譯者:
+
+  梁育齊 Liang YuChi <ycliang@xxxxxxxxxxxxxx>
+
+=============================
+RISC-V Linux 的虛擬記憶體佈局
+=============================
+
+:Author: Alexandre Ghiti <alex@xxxxxxxx>
+:Date: 12 February 2021
+
+這份文件描述 RISC-V Linux 核心的虛擬記憶體佈局。
+
+32 位元 RISC-V Linux 核心
+=========================
+
+32 位元 RISC-V Linux 核心
+------------------------
+
+待完成
+
+64 位元 RISC-V Linux 核心
+=========================
+RISC-V 的特權架構文件描述 64 位元長度的位址
+"必須讓第 63-48 位都等於第 47 位,否則會發生分頁錯誤中斷。"
+而這表示有一個巨大的記憶體"孔洞"將虛擬記憶體空間分成兩半,
+下半部是使用者空間所在的位址,上半部則是 RISC-V Linux 核心所使用的位址。
+
+RISC-V Linux Kernel SV39
+------------------------
+
+::
+
+  ========================================================================================================================
+       起始位址     |   偏移量   |     終端位址     |  大小   | 虛擬記憶體區塊的描述
+  ========================================================================================================================
+                    |            |                  |         |
+   0000000000000000 |    0       | 0000003fffffffff |  256 GB | 使用者空間的虛擬記憶體,每個 mm 有各自的虛擬記憶體
+  __________________|____________|__________________|_________|___________________________________________________________
+                    |            |                  |         |
+   0000004000000000 | +256    GB | ffffffbfffffffff | ~16M TB | ... 非常大,大約是 64 位元寬的一塊非標準化的虛擬記憶體孔洞
+                    |            |                  |         |     ,從核心起始記憶體位址對映 -256 GB 偏移量的位址。
+  __________________|____________|__________________|_________|___________________________________________________________
+                                                              |
+                                                              | 核心空間的虛擬記憶體,被所有的程序所共享:
+  ____________________________________________________________|___________________________________________________________
+                    |            |                  |         |
+   ffffffc000000000 | -256    GB | ffffffc7ffffffff |   32 GB | kasan
+   ffffffcefee00000 | -196    GB | ffffffcefeffffff |    2 MB | fixmap
+   ffffffceff000000 | -196    GB | ffffffceffffffff |   16 MB | PCI io
+   ffffffcf00000000 | -196    GB | ffffffcfffffffff |    4 GB | vmemmap
+   ffffffd000000000 | -192    GB | ffffffdfffffffff |   64 GB | vmalloc/ioremap space
+   ffffffe000000000 | -128    GB | fffffffeffffffff |  124 GB | 所有實體記憶體的直接映射
+  __________________|____________|__________________|_________|____________________________________________________________
+                                                              |
+                                                              |
+  ____________________________________________________________|____________________________________________________________
+                    |            |                  |         |
+   ffffffff00000000 |   -4    GB | ffffffff7fffffff |    2 GB | 核心模組,BPF
+   ffffffff80000000 |   -2    GB | ffffffffffffffff |    2 GB | 核心
+  __________________|____________|__________________|_________|____________________________________________________________
-- 
2.25.1




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux