mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
feat(mm): 实现缺页中断处理,支持页面延迟分配和写时拷贝,以及用户栈自动拓展 (#715)
* 实现缺页中断处理 * 完善页表拷贝逻辑 * 优化代码结构 * 完善缺页异常信息 * 修改大页映射逻辑 * 修正大页映射错误 * 添加缺页中断支持标志 * 实现用户栈自动拓展功能
This commit is contained in:
@ -855,10 +855,15 @@ impl Syscall {
|
||||
}
|
||||
|
||||
SYS_MADVISE => {
|
||||
// 这个太吵了,总是打印,先注释掉
|
||||
// kwarn!("SYS_MADVISE has not yet been implemented");
|
||||
Ok(0)
|
||||
let addr = args[0];
|
||||
let len = page_align_up(args[1]);
|
||||
if addr & (MMArch::PAGE_SIZE - 1) != 0 {
|
||||
Err(SystemError::EINVAL)
|
||||
} else {
|
||||
Self::madvise(VirtAddr::new(addr), len, args[2])
|
||||
}
|
||||
}
|
||||
|
||||
SYS_GETTID => Self::gettid().map(|tid| tid.into()),
|
||||
SYS_GETUID => Self::getuid(),
|
||||
|
||||
|
Reference in New Issue
Block a user