X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fdrc%2Fcmn.c;h=3ec039be169075d85e3df983239a5b5bf3eb416b;hb=30f0fdd42279a99893034a5d21b64439536c60aa;hp=0e79489791aa02c2480961abf2647ba0848c2f45;hpb=7f5a3fc12a778ff161ebf3f379ccc3127de4ef29;p=picodrive.git diff --git a/cpu/drc/cmn.c b/cpu/drc/cmn.c index 0e79489..3ec039b 100644 --- a/cpu/drc/cmn.c +++ b/cpu/drc/cmn.c @@ -1,3 +1,10 @@ +/* + * PicoDrive + * Copyright (C) 2009,2010 notaz + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include #ifdef __linux__ #include @@ -13,7 +20,7 @@ void drc_cmn_init(void) #ifdef __linux__ void *tmp; - tmp = mmap(tcache, DRC_TCACHE_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_ANONYMOUS, -1, 0); + tmp = mmap(tcache, DRC_TCACHE_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); printf("mmap tcache: %p, asked %p\n", tmp, tcache); #endif }