> For the complete documentation index, see [llms.txt](https://nankai.gitbook.io/ucore-os-on-risc-v64/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nankai.gitbook.io/ucore-os-on-risc-v64/lab2/lian-xi.md).

# 练习

## 练习1：如何获取物理内存范围

如果 OS 无法提前知道当前硬件的可用物理内存范围，请问你有何办法让 OS 获取可用物理内存范围？

## 练习2：实现Best Fit页面分配算法

实现Best Fit页面分配算法，算法的时空复杂度不做要求，能通过测试即可。参考`kern/mm/default_pmm.c`对First Fit算法的实现。
