if( Flags & MM_PFLAG_KERNEL ) *ent &= ~PF_USER;
else *ent |= PF_USER;
}
+
+ // Copy-On-Write
+ if( Mask & MM_PFLAG_COW )
+ {
+ if( Flags & MM_PFLAG_COW ) {
+ *ent &= ~PF_WRITE;
+ *ent |= PF_COW;
+ }
+ else {
+ *ent &= ~PF_COW;
+ *ent |= PF_WRITE;
+ }
+ }
}
/**
Uint IsFileLoaded(char *file)\r
{\r
int i;\r
- DEBUGS("IsFileLoaded: (file='%s')\n", file);\r
+ DEBUGS("IsFileLoaded: (file='%s')", file);\r
for( i = 0; i < MAX_LOADED_LIBRARIES; i++ )\r
{\r
if(gLoadedLibraries[i].Base == 0) break; // Last entry has Base set to NULL\r
+ DEBUGS(" strcmp('%s', '%s')", gLoadedLibraries[i].Name, file);\r
if(strcmp(gLoadedLibraries[i].Name, file) == 0) {\r
- DEBUGS("IsFileLoaded: Found %i (0x%x)\n", i, gLoadedLibraries[i].Base);\r
+ DEBUGS("IsFileLoaded: Found %i (0x%x)", i, gLoadedLibraries[i].Base);\r
return gLoadedLibraries[i].Base;\r
}\r
}\r
- DEBUGS("IsFileLoaded: Not Found\n");\r
+ DEBUGS("IsFileLoaded: Not Found");\r
return 0;\r
}\r
\r