Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1136523pxb; Sun, 12 Sep 2021 09:01:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1QhLh6ZMMLTbb7MOfaQKGZheyWO/MJRkA74oqNFko4HzYM8hHjW6hVlZCbpVCyKpjhrvj X-Received: by 2002:a05:6402:358e:: with SMTP id y14mr8543827edc.296.1631462497054; Sun, 12 Sep 2021 09:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631462497; cv=none; d=google.com; s=arc-20160816; b=AyVyBwSH/GalwWmefhrWTxq1P+0NIourIhHE1+/0du32GFx+eVKjSLsrY8OmDMbiZ8 hjIMxknr9Hgr8s7294fFkXQh8KNDHsANbd5HF0tfVL1XZ//2fraPO6iyUEI1F59y+zTj 9XueVFvqcC2YnKytH6s+yIWCYrIW2rae2cNhwjNmBOU+rK4lo2gC+miCPM+/iZIol1wA v5DVDAh+MFT/KvycVup1icg7qyQCq7KZITNc/X8dVLG6qN+iHkH3+3MLuBKjG8bSVtS0 JlmIg9jOa8mw2IH0BiSozB+gEIBDIdGDseflcNJFL4gU6ivUzI1qe+I6ufYW3EuSHGts nzgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8wFphT0HRpG/61wPnhuTV9YxGQSgePqUXQwkSNjAGfs=; b=T34kMbpVLmK1l76fvbTJypjmX3FIqWs8jLbGpIJATVwjPuufp/y4T/YPMRS4hOEF6X QPBJ0BvX7DXiY3VQUObpPANc8Zg8m4qU85asV+jEQ82mmb8H9UN5NjzltxXxH3QFxfK1 zC8LmhSE/GjUWCeTw1jb7mntFGKpwvQpC8Gyx6b3L2s8CMa4heCdLru9jVUBjCpFeie8 Bp8zdR9vwG9TgC/qAal3ixBDMR3D8F1proretqYiGY9Y3itk28vg/pbeSs5bzPHG79I0 qE4lw+97y6tgQm5wUPvRkCDBNeF57SoEoQ2bWJqzUjUvx+S5Vpi6cAJ1xtecpmwwCp9P nzwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si6631459ejk.287.2021.09.12.09.01.11; Sun, 12 Sep 2021 09:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235788AbhILQAl (ORCPT + 99 others); Sun, 12 Sep 2021 12:00:41 -0400 Received: from exmail.andestech.com ([60.248.187.195]:33700 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235850AbhILQAk (ORCPT ); Sun, 12 Sep 2021 12:00:40 -0400 Received: from ATCSQR.andestech.com (localhost [127.0.0.2] (may be forged)) by ATCSQR.andestech.com with ESMTP id 18CFrdfQ066177; Sun, 12 Sep 2021 23:53:39 +0800 (GMT-8) (envelope-from ycliang@andestech.com) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id 18CFrNvJ066155; Sun, 12 Sep 2021 23:53:23 +0800 (GMT-8) (envelope-from ycliang@andestech.com) Received: from ubuntu01.andestech.com (192.168.21.16) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Sun, 12 Sep 2021 23:53:24 +0800 From: Leo Yu-Chi Liang To: , , , , CC: , Subject: [PATCH 2/2] docs/zh_TW: Add translation for riscv/vm-layout Date: Sun, 12 Sep 2021 15:53:19 +0000 Message-ID: <20210912155319.130461-1-ycliang@andestech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.21.16] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 18CFrdfQ066177 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yu-Chi Liang Add Traditional Chinese for Documentation/riscv/vm-layout.rst Signed-off-by: Leo Yu-Chi Liang --- .../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 + +============================= +RISC-V Linux 的虛擬記憶體佈局 +============================= + +:Author: Alexandre Ghiti +: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