Changeset 7f1c620 in mainline for arch/ppc64/include/mm/page.h
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc64/include/mm/page.h
r991779c5 r7f1c620 44 44 45 45 #ifndef __ASM__ 46 # define KA2PA(x) ((( __address) (x)) - 0x80000000)47 # define PA2KA(x) ((( __address) (x)) + 0x80000000)46 # define KA2PA(x) (((uintptr_t) (x)) - 0x80000000) 47 # define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) 48 48 #else 49 49 # define KA2PA(x) ((x) - 0x80000000) … … 95 95 #define SET_FRAME_FLAGS_ARCH(ptl3, i, x) set_pt_flags((pte_t *) (ptl3), (index_t) (i), (x)) 96 96 97 #define PTE_VALID_ARCH(pte) (*(( __u32*) (pte)) != 0)97 #define PTE_VALID_ARCH(pte) (*((uint32_t *) (pte)) != 0) 98 98 #define PTE_PRESENT_ARCH(pte) ((pte)->p != 0) 99 #define PTE_GET_FRAME_ARCH(pte) (( __address) ((pte)->pfn << 12))99 #define PTE_GET_FRAME_ARCH(pte) ((uintptr_t) ((pte)->pfn << 12)) 100 100 #define PTE_WRITABLE_ARCH(pte) 1 101 101 #define PTE_EXECUTABLE_ARCH(pte) 1
Note:
See TracChangeset
for help on using the changeset viewer.