Ignore:
Timestamp:
2010-07-02T14:19:30Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89c57b6
Parents:
fe7abd0 (diff), e3ee9b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rfe7abd0 rcefb126  
    140140
    141141static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
     142    REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH)
    142143{
    143144        pte_t *p = &pt[i];
    144145       
    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);
     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        );
    152155}
    153156
    154157static 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)
    155160{
    156161        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.