Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6b80696 in mainline


Ignore:
Timestamp:
2010-06-22T11:34:00Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
4ca26c9b
Parents:
66fcba2
Message:

be very specific about the immediate result type

File:
1 edited

Legend:

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

    r66fcba2 r6b80696  
    143143        pte_t *p = &pt[i];
    144144       
    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);
     145        return (
     146            ((unsigned int) (!p->page_cache_disable) << PAGE_CACHEABLE_SHIFT) |
     147            ((unsigned int) (!p->present) << PAGE_PRESENT_SHIFT) |
     148            ((unsigned int) p->uaccessible << PAGE_USER_SHIFT) |
     149            (1 << PAGE_READ_SHIFT) |
     150            ((unsigned int) p->writeable << PAGE_WRITE_SHIFT) |
     151            (1 << PAGE_EXEC_SHIFT) |
     152            ((unsigned int) p->global << PAGE_GLOBAL_SHIFT)
     153        );
    152154}
    153155
Note: See TracChangeset for help on using the changeset viewer.