> For the complete documentation index, see [llms.txt](https://mit-public-courses-cn-translatio.gitbook.io/mit6-s081/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mit-public-courses-cn-translatio.gitbook.io/mit6-s081/lec04-page-tables-frans.md).

# Lec04 Page tables (Frans)

准备工作，阅读【1】中第3章；阅读memlayout.h【2】；阅读vm.c【3】；阅读kalloc【4】；阅读riscv.h【5】；阅读exec.c【6】

【1】<https://pdos.csail.mit.edu/6.828/2020/xv6/book-riscv-rev1.pdf>

【2】<https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/memlayout.h>

【3】<https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/vm.c>

【4】<https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/kalloc.c>

【5】<https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/riscv.h>

【6】<https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/exec.c>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mit-public-courses-cn-translatio.gitbook.io/mit6-s081/lec04-page-tables-frans.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
