Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/abs32le/include/mm/page.h

    rfc81981 r214ec25c  
    140140
    141141static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    142     REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH)
    143142{
    144143        pte_t *p = &pt[i];
    145144       
    146         return (
    147             ((unsigned int) (!p->page_cache_disable) << PAGE_CACHEABLE_SHIFT) |
    148             ((unsigned int) (!p->present) << PAGE_PRESENT_SHIFT) |
    149             ((unsigned int) p->uaccessible << PAGE_USER_SHIFT) |
    150             (1 << PAGE_READ_SHIFT) |
    151             ((unsigned int) p->writeable << PAGE_WRITE_SHIFT) |
    152             (1 << PAGE_EXEC_SHIFT) |
    153             ((unsigned int) p->global << PAGE_GLOBAL_SHIFT)
    154         );
     145        return ((!p->page_cache_disable) << PAGE_CACHEABLE_SHIFT |
     146            (!p->present) << PAGE_PRESENT_SHIFT |
     147            p->uaccessible << PAGE_USER_SHIFT |
     148            1 << PAGE_READ_SHIFT |
     149            p->writeable << PAGE_WRITE_SHIFT |
     150            1 << PAGE_EXEC_SHIFT |
     151            p->global << PAGE_GLOBAL_SHIFT);
    155152}
    156153
    157154static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    158     WRITES(ARRAY_RANGE(pt, PTL0_ENTRIES_ARCH))
    159     REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH)
    160155{
    161156        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.