This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10213903403
/
os_kernel_lab
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix the bug in lab6_result:vmm.c
main
ArchStacker
9 years ago
parent
09c22d00a0
commit
bded0c9515
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
labcodes_answer/lab6_result/kern/mm/vmm.c
+ 1
- 0
labcodes_answer/lab6_result/kern/mm/vmm.c
View File
@ -527,6 +527,7 @@ do_pgfault(struct mm_struct *mm, uint32_t error_code, uintptr_t addr) {
}
page_insert
(
mm
-
>
pgdir
,
page
,
addr
,
perm
)
;
swap_map_swappable
(
mm
,
addr
,
page
,
1
)
;
page
-
>
pra_vaddr
=
addr
;
}
ret
=
0
;
failed
:
Write
Preview
Loading…
Cancel
Save