Skip to contentSkip to conversation

docs: domain_support: Use capital letter for privilege modes

PATCH New Bin Meng 3 participants 3 messages Dec 30, 2022 – Jan 9, 2023

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 docs: domain_support: Use capital letter for privilege modes

The RISC-V convention for the privilege mode is capital letter, like 'M-mode', instead of 'm-mode'.

---

 docs/domain_support.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/domain_support.md +2 -2
index 8963b57..c909d4a 100644
@@ -161,7 +161,7 @@ The DT properties of a domain instance DT node are as follows:
   and access permissions for the domain instance. Each list entry is a pair
   of DT node phandle and access permissions. The access permissions are
   represented as a 32bit bitmask having bits: **readable** (BIT[0]),
-  **writeable** (BIT[1]), **executable** (BIT[2]), and **m-mode** (BIT[3]).
+  **writeable** (BIT[1]), **executable** (BIT[2]), and **M-mode** (BIT[3]).
 * **boot-hart** (Optional) - The DT node phandle of the HART booting the
   domain instance. If coldboot HART is assigned to the domain instance then
   this DT property is ignored and the coldboot HART is assumed to be the
@@ -180,7 +180,7 @@ The DT properties of a domain instance DT node are as follows:
   is used as default value.
 * **next-mode** (Optional) - The 32 bit next booting stage mode for the
   domain instance. The possible values of this DT property are: **0x1**
-  (s-mode), and **0x0** (u-mode). If this DT property is not available
+  (S-mode), and **0x0** (U-mode). If this DT property is not available
   and coldboot HART is not assigned to the domain instance then **0x1**
   is used as default value. If this DT property is not available and
   coldboot HART is assigned to the domain instance then **next booting
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 docs: domain_support: Use capital letter for privilege modes

Quoted 36 lines · Bin Meng

The RISC-V convention for the privilege mode is capital letter, like 'M-mode', instead of 'm-mode'.

---

 docs/domain_support.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/domain_support.md +2 -3
index 8963b57..c909d4a 100644
@@ -161,7 +161,7 @@ The DT properties of a domain instance DT node are as follows:
   and access permissions for the domain instance. Each list entry is a pair
   of DT node phandle and access permissions. The access permissions are
   represented as a 32bit bitmask having bits: **readable** (BIT[0]),
-  **writeable** (BIT[1]), **executable** (BIT[2]), and **m-mode** (BIT[3]).
+  **writeable** (BIT[1]), **executable** (BIT[2]), and **M-mode** (BIT[3]).
 * **boot-hart** (Optional) - The DT node phandle of the HART booting the
   domain instance. If coldboot HART is assigned to the domain instance then
   this DT property is ignored and the coldboot HART is assumed to be the
@@ -180,7 +180,7 @@ The DT properties of a domain instance DT node are as follows:
   is used as default value.
 * **next-mode** (Optional) - The 32 bit next booting stage mode for the
   domain instance. The possible values of this DT property are: **0x1**
-  (s-mode), and **0x0** (u-mode). If this DT property is not available
+  (S-mode), and **0x0** (U-mode). If this DT property is not available
   and coldboot HART is not assigned to the domain instance then **0x1**
   is used as default value. If this DT property is not available and
   coldboot HART is assigned to the domain instance then **next booting
--

2.34.1

Quoted 4 lines

--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

Signature · 2 lines
Regards,
Atish
Applied
#2 lore raw

PATCH 1/1 docs: domain_support: Use capital letter for privilege modes

In reply to Bin Meng
Quoted 5 lines · Bin Meng

The RISC-V convention for the privilege mode is capital letter, like 'M-mode', instead of 'm-mode'.

Looks good to me.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

Quoted 30 lines

---

 docs/domain_support.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/domain_support.md +2 -3
index 8963b57..c909d4a 100644
@@ -161,7 +161,7 @@ The DT properties of a domain instance DT node are as follows:
   and access permissions for the domain instance. Each list entry is a pair
   of DT node phandle and access permissions. The access permissions are
   represented as a 32bit bitmask having bits: **readable** (BIT[0]),
-  **writeable** (BIT[1]), **executable** (BIT[2]), and **m-mode** (BIT[3]).
+  **writeable** (BIT[1]), **executable** (BIT[2]), and **M-mode** (BIT[3]).
 * **boot-hart** (Optional) - The DT node phandle of the HART booting the
   domain instance. If coldboot HART is assigned to the domain instance then
   this DT property is ignored and the coldboot HART is assumed to be the
@@ -180,7 +180,7 @@ The DT properties of a domain instance DT node are as follows:
   is used as default value.
 * **next-mode** (Optional) - The 32 bit next booting stage mode for the
   domain instance. The possible values of this DT property are: **0x1**
-  (s-mode), and **0x0** (u-mode). If this DT property is not available
+  (S-mode), and **0x0** (U-mode). If this DT property is not available
   and coldboot HART is not assigned to the domain instance then **0x1**
   is used as default value. If this DT property is not available and
   coldboot HART is assigned to the domain instance then **next booting
--

2.34.1