Skip to content
Snippets Groups Projects
Commit 3262f5a8 authored by an7s's avatar an7s
Browse files

(1) Extend memory access monitoring boundary to the full page boundary

(2) Fixed off-by-one when checking boundaries
parent c468965a
No related branches found
No related tags found
No related merge requests found
......@@ -195,10 +195,16 @@ void zipr_post_allocate_watcher(int ret, reg_values_t rv)
// print_int(*(int*)rv.edx);
// print_str("\n");
#endif
int start=*(int*)(rv.edx);
int end=start+rv.ebx;
// need to round up to nearest 4K!
// orig code: int end = start + rv.ebx;
int end = start + ((rv.ebx / PAGESIZE) * PAGESIZE);
if (rv.ebx % PAGESIZE > 0)
end += PAGESIZE;
end--;
add_to_list(start,end);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment