Update blog/content/edition-2/posts/08-paging-introduction/index.ja.md

This commit is contained in:
Shu W. Nakamura
2021-05-12 15:00:42 +09:00
committed by GitHub
parent c7deb06fe8
commit c85e40b9ab

View File

@@ -358,7 +358,7 @@ unsafe { *ptr = 42; }
println!("write worked");
```
By commenting out the last line, we see that the read access works, but the write access causes a page fault:
最後の2行をコメントアウトすると、読み込みアクセスだけになるので実行は成功しますが、そうしなかった場合ページフォルトが発生します
![QEMU with output: "read worked, EXCEPTION: Page Fault, Accessed Address: VirtAddr(0x2031b2), Error Code: PROTECTION_VIOLATION | CAUSED_BY_WRITE, InterruptStackFrame: {…}"](qemu-page-fault-protection.png)