Changeset 73 for trunk/hal/x86_64/core/hal_types.h
- Timestamp:
- Jun 27, 2017, 11:03:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_types.h
r70 r73 196 196 197 197 /* virtual */ 198 #define HAL_VA_BASE 0xffff800000000000ULL 198 199 #define PTR_MASK 0x0000000FFFFFFFFFULL 199 200 #define CXY_MASK 0x00000FF000000000ULL … … 201 202 #define GET_CXY(xp) ((cxy_t)(((xp) & CXY_MASK) >> PTR_SHIFT)) 202 203 #define GET_PTR(xp) ((void*)((xp) & PTR_MASK)) 203 #define XPTR(cxy,ptr) (((uint64_t)(cxy) << PTR_SHIFT) | (((uint64_t)(ptr)) & PTR_MASK)) 204 #define XPTR(cxy,ptr) ((uint64_t)HAL_VA_BASE | \ 205 ((uint64_t)(cxy) << PTR_SHIFT) | \ 206 (((uint64_t)(ptr)) & PTR_MASK)) 204 207 205 208 /* physical */
Note: See TracChangeset
for help on using the changeset viewer.