From 366576641d7c15e333995a06970025e380abe025 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Sun, 31 Dec 2023 02:51:52 +0000 Subject: [PATCH 1/2] Update 1-the-basics.mdx Rephrase sentence. --- src/content/chapters/1-the-basics.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/chapters/1-the-basics.mdx b/src/content/chapters/1-the-basics.mdx index 9042633..c10e7ab 100644 --- a/src/content/chapters/1-the-basics.mdx +++ b/src/content/chapters/1-the-basics.mdx @@ -72,7 +72,7 @@ It's time to leap through our first rabbit hole into a land filled with syscalls ## Two Rings to Rule Them All -The *mode* (sometimes called privilege level or ring) a processor is in controls what it's allowed to do. Modern architectures have at least two options: kernel/supervisor mode and user mode. While an architecture might support more than two modes, only kernel mode and user mode are commonly used these days. +The *mode* (sometimes called privilege level or ring) controls what a processor it's allowed to do. Modern architectures have at least two options: kernel/supervisor mode and user mode. While an architecture might support more than two modes, only kernel mode and user mode are commonly used these days. In kernel mode, anything goes: the CPU is allowed to execute any supported instruction and access any memory. In user mode, only a subset of instructions is allowed, I/O and memory access is limited, and many CPU settings are locked. Generally, the kernel and drivers run in kernel mode while applications run in user mode. From 40d3838e63244625f2e095619c96045d257effed Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Mon, 7 Oct 2024 20:11:57 +0100 Subject: [PATCH 2/2] Update 1-the-basics.mdx --- src/content/chapters/1-the-basics.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/chapters/1-the-basics.mdx b/src/content/chapters/1-the-basics.mdx index c10e7ab..8a911b5 100644 --- a/src/content/chapters/1-the-basics.mdx +++ b/src/content/chapters/1-the-basics.mdx @@ -72,7 +72,7 @@ It's time to leap through our first rabbit hole into a land filled with syscalls ## Two Rings to Rule Them All -The *mode* (sometimes called privilege level or ring) controls what a processor it's allowed to do. Modern architectures have at least two options: kernel/supervisor mode and user mode. While an architecture might support more than two modes, only kernel mode and user mode are commonly used these days. +The *mode* (sometimes called privilege level or ring) controls what a processor is allowed to do. Modern architectures have at least two options: kernel/supervisor mode and user mode. While an architecture might support more than two modes, only kernel mode and user mode are commonly used these days. In kernel mode, anything goes: the CPU is allowed to execute any supported instruction and access any memory. In user mode, only a subset of instructions is allowed, I/O and memory access is limited, and many CPU settings are locked. Generally, the kernel and drivers run in kernel mode while applications run in user mode.