ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/vm_alloc.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/vm_alloc.cpp (file contents):
Revision 1.15 by gbeauche, 2004-12-11T10:19:34Z vs.
Revision 1.16 by gbeauche, 2004-12-18T22:20:27Z

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines