Use FEC_U instead of (1<<2)

上级 40aa2f94
......@@ -62,7 +62,7 @@ do_pagefault(struct trapframe *tf)
tf->rax = -1;
tf->rip = (u64)__fetch_end;
return 0;
} else if (tf->err & (1<<2)) {
} else if (tf->err & FEC_U) {
sti();
if(pagefault(myproc()->vmap, addr, tf->err) >= 0){
#if MTRACE
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论