increasing the readability of the code
This commit is contained in:
parent
85c94f7af7
commit
2071bb0601
1 changed files with 2 additions and 1 deletions
|
@ -656,11 +656,12 @@ static void pagefault_handler(struct state *s)
|
|||
pgt = (page_table_t*) ((KERNEL_SPACE - 1024*PAGE_SIZE + index1*PAGE_SIZE) & 0xFFFFF000);
|
||||
if (!pgt || !(pgt->entries[index2]))
|
||||
goto default_handler;
|
||||
if (pgt->entries[index2] & PG_SVM_INIT)
|
||||
if (pgt->entries[index2] & PG_SVM_INIT) {
|
||||
if (BUILTIN_EXPECT(!svm_alloc_page(viraddr, pgt), 1))
|
||||
return;
|
||||
else
|
||||
goto default_handler;
|
||||
}
|
||||
if (pgt->entries[index2] & PG_SVM_STRONG)
|
||||
if (BUILTIN_EXPECT(!svm_access_request(viraddr), 1))
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue