zhiyihuang / xv6_rpi_port

This is an xv6 port to Raspberry Pi
Other
41 stars 12 forks source link

kvmalloc这个函数是怎么移植的? #4

Closed 996refuse closed 4 years ago

996refuse commented 4 years ago

应该是通过 kvmalloc -> setupkvm_new 来配置内核页表的吧?为什么 main 没有 call kvmalloc? 神奇的是,kernel 代码竟然没有跑飞。

zhiyihuang commented 4 years ago

kvmalloc is not needed as the kernel page table is reserved initially in entry.s and will never change.

996refuse commented 4 years ago

注意到了,感谢解答