# | Line 451 | Line 451 | int vm_protect(void * addr, size_t size, | |
---|---|---|
451 | ||
452 | /* Returns the size of a page. */ | |
453 | ||
454 | < | int vm_page_size(void) |
454 | > | int vm_get_page_size(void) |
455 | { | |
456 | #ifdef _WIN32 | |
457 | return 4096; | |
# | Line 470 | Line 470 | int main(void) | |
470 | vm_init(); | |
471 | ||
472 | #define page_align(address) ((char *)((unsigned long)(address) & -page_size)) | |
473 | < | unsigned long page_size = vm_page_size(); |
473 | > | unsigned long page_size = vm_get_page_size(); |
474 | ||
475 | const int area_size = 6 * page_size; | |
476 | volatile char * area = (volatile char *) vm_acquire(area_size); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |