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/sparc32/include/arch/mm/page.h

    r7a67416 rdc05a9a  
    129129/* Macros for querying the last level entries. */
    130130#define PTE_VALID_ARCH(p) \
    131         (*((uint32_t *) (p)) != 0)
     131        ((p)->et != PTE_ET_INVALID)
    132132#define PTE_PRESENT_ARCH(p) \
    133133        ((p)->et != 0)
Note: See TracChangeset for help on using the changeset viewer.