✨ Interested in OS kernel, system security and virtualization.
✍️ I wrote dev articles on My Blog
📫 How to reach me: Email: [email protected] | 知乎
📝 Blog posts:
MIT 6.828 Operating System Lab https://pdos.csail.mit.edu/6.828/2018/schedule.html
Home Page: https://pdos.csail.mit.edu/6.828/2018/schedule.html
License: GNU General Public License v3.0
✨ Interested in OS kernel, system security and virtualization.
✍️ I wrote dev articles on My Blog
📫 How to reach me: Email: [email protected] | 知乎
📝 Blog posts:
因為這repo應該是最容易搜到的6.828repo.
所以在這裡填一個坑.
使用新的 toolchain 有可能在lab5之後遇上multiple definition 的error. 這是由於 gcc 把 default 的 -fcommon 改成了 -fno-common.
解決方法:在 makefile 中的 CFLAGS 加上 -fcommon
__attribute__((__aligned__(PGSIZE)))
pde_t entry_pgdir[NPDENTRIES] = {
// Map VA's [0, 4MB) to PA's [0, 4MB)
// 在数组定义中,这是什么写法?
[0]
= ((uintptr_t)entry_pgtable - KERNBASE) + PTE_P,
// Map VA's [KERNBASE, KERNBASE+4MB) to PA's [0, 4MB)
[KERNBASE>>PDXSHIFT]
= ((uintptr_t)entry_pgtable - KERNBASE) + PTE_P + PTE_W
};
这是C99初始化数组的一个写法,给特定下标赋值。
此处把页描述符数据写入页表的第0项和第KERNBASE>>PDXSHIFT项,其余全为0(page invalid),非常简洁明了
感谢您整理的笔记,学到了很多
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.