Ignore:
Timestamp:
2016-08-31T14:12:45Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
38dc82d
Parents:
7a67416
Message:

Fix PTE_VALID_ARCH macros

The PTE_VALID_ARCH macros are rewritten so that they don't break the
anti-aliasing rules. The page_ht PTE_VALID_ARCH is modified not to
trigger always-true warnings.

File:
1 edited

Legend:

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

    r7a67416 rdc05a9a  
    131131/* Macros for querying the last-level PTE entries. */
    132132#define PTE_VALID_ARCH(p) \
    133         (*((uint64_t *) (p)) != 0)
     133        ((p)->soft_valid != 0)
    134134#define PTE_PRESENT_ARCH(p) \
    135135        ((p)->present != 0)
Note: See TracChangeset for help on using the changeset viewer.