mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 10:06:31 +00:00
new: 初步完成了mmio地址空间自动分配(未测试)
bugfix: mmio虚拟地址分配的bug
This commit is contained in:
@ -57,8 +57,16 @@ int __anon_vma_add(struct anon_vma_t *anon_vma, struct vm_area_struct *vma);
|
||||
|
||||
/**
|
||||
* @brief 从anon_vma的管理范围中删除指定的vma
|
||||
* (在进入这个函数之前,应该要加锁)
|
||||
* (在进入这个函数之前,应该要对anon_vma加锁)
|
||||
* @param vma 将要取消对应的anon_vma管理的vma结构体
|
||||
* @return int 返回码
|
||||
*/
|
||||
int __anon_vma_del(struct vm_area_struct *vma);
|
||||
int __anon_vma_del(struct vm_area_struct *vma);
|
||||
|
||||
/**
|
||||
* @brief 创建mmio对应的页结构体
|
||||
*
|
||||
* @param paddr 物理地址
|
||||
* @return struct Page* 创建成功的page
|
||||
*/
|
||||
struct Page* __create_mmio_page_struct(uint64_t paddr);
|
Reference in New Issue
Block a user