Subversion Repositories HelenOS-historic

Rev

Rev 1150 | Rev 1179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1150 Rev 1178
Line 350... Line 350...
350
 */
350
 */
351
int get_area_flags(as_area_t *a)
351
int get_area_flags(as_area_t *a)
352
{
352
{
353
    int flags;
353
    int flags;
354
 
354
 
355
    flags = PAGE_USER | PAGE_PRESENT | PAGE_CACHEABLE;
355
    flags = PAGE_USER | PAGE_PRESENT;
356
   
356
   
357
    if (a->flags & AS_AREA_READ)
357
    if (a->flags & AS_AREA_READ)
358
        flags |= PAGE_READ;
358
        flags |= PAGE_READ;
359
       
359
       
360
    if (a->flags & AS_AREA_WRITE)
360
    if (a->flags & AS_AREA_WRITE)
361
        flags |= PAGE_WRITE;
361
        flags |= PAGE_WRITE;
362
   
362
   
363
    if (a->flags & AS_AREA_EXEC)
363
    if (a->flags & AS_AREA_EXEC)
364
        flags |= PAGE_EXEC;
364
        flags |= PAGE_EXEC;
365
   
365
   
-
 
366
    if (!(a->flags & AS_AREA_DEVICE))
-
 
367
        flags |= PAGE_CACHEABLE;
-
 
368
       
366
    return flags;
369
    return flags;
367
}
370
}
368
 
371
 
369
/** Create page table.
372
/** Create page table.
370
 *
373
 *