lkml.org 
[lkml]   [2021]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] docs/zh_TW: Add translation for riscv/vm-layout
Date
From: Leo Yu-Chi Liang <ycliang@cs.nctu.edu.tw>

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

Signed-off-by: Leo Yu-Chi Liang <ycliang@cs.nctu.edu.tw>
---
.../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@cs.nctu.edu.tw>
+
+=============================
+RISC-V Linux 的虛擬記憶體佈局
+=============================
+
+:Author: Alexandre Ghiti <alex@ghiti.fr>
+: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
\
 
 \ /
  Last update: 2021-09-12 18:00    [W:0.053 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site