Changeset 51029384 in mainline for arch/mips/include/mm/page.h


Ignore:
Timestamp:
2005-07-20T13:56:18Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5eb1ee
Parents:
121dab5
Message:

Fix setters of page table attributes for both IA-32 and MIPS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/include/mm/page.h

    r121dab5 r51029384  
    102102        pte_t *p = &pt[i];
    103103       
    104         p->c = (flags & PAGE_CACHEABLE) ? PAGE_CACHEABLE_EXC_WRITE : PAGE_UNCACHED;
     104        p->c = (flags & PAGE_CACHEABLE) != 0 ? PAGE_CACHEABLE_EXC_WRITE : PAGE_UNCACHED;
    105105        p->v = !(flags & PAGE_NOT_PRESENT);
    106         p->d = flags & PAGE_WRITE;
     106        p->d = (flags & PAGE_WRITE) != 0;
    107107}
    108108
Note: See TracChangeset for help on using the changeset viewer.