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

Comparing SheepShaver/src/Unix/main_unix.cpp (file contents):
Revision 1.37 by gbeauche, 2004-05-31T10:02:20Z vs.
Revision 1.38 by gbeauche, 2004-05-31T10:55:42Z

# Line 613 | Line 613 | int main(int argc, char **argv)
613                  goto quit;
614          }
615          dr_cache_area_mapped = true;
616 + #if !EMULATED_PPC
617 +        if (vm_protect((char *)DR_CACHE_BASE, DR_CACHE_SIZE, VM_PAGE_READ | VM_PAGE_WRITE | VM_PAGE_EXECUTE) < 0) {
618 +                sprintf(str, GetString(STR_DR_CACHE_MMAP_ERR), strerror(errno));
619 +                ErrorAlert(str);
620 +                goto quit;
621 +        }
622 + #endif
623          DRCacheAddr = DR_CACHE_BASE;
624          D(bug("DR Cache at %p\n", DRCacheAddr));
625  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines