Changeset 560b81c in mainline for kernel/generic/src/mm/page.c


Ignore:
Timestamp:
2016-09-17T15:09:40Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae66564
Parents:
97b8ca9
Message:

Make sure to test the present bit of the found PTE

By design, page_mapping_find() can return true and a copy of a PTE
which is not present. It is therefore necessary to test the found PTE
by PTE_PRESENT() macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/page.c

    r97b8ca9 r560b81c  
    142142 * @param[out] pte Structure that will receive a copy of the found PTE.
    143143 *
    144  * @return True if the mapping was found, false otherwise.
     144 * @return True if a valid PTE is returned, false otherwise. Note that
     145 *         the PTE is not guaranteed to be present.
    145146 */
    146147NO_TRACE bool page_mapping_find(as_t *as, uintptr_t page, bool nolock,
Note: See TracChangeset for help on using the changeset viewer.