Changeset 272 for trunk/hal/x86_64/core/hal_types.h
- Timestamp:
- Jul 24, 2017, 4:30:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_types.h
r226 r272 204 204 #define PTR_SHIFT 36 205 205 #define GET_CXY(xp) ((cxy_t)(((xp) & CXY_MASK) >> PTR_SHIFT)) 206 #define GET_PTR(xp) ((void*)(HAL_VA_LOCAL_CLUSTER | ((xp) & PTR_MASK))) 206 207 #define GET_PTR(xp) ((void *)((uint64_t)HAL_VA_BASE | \ 208 ((uint64_t)(local_cxy) << PTR_SHIFT) | \ 209 (((uint64_t)(xp)) & PTR_MASK))) 210 207 211 #define XPTR(cxy,ptr) ((uint64_t)HAL_VA_BASE | \ 208 212 ((uint64_t)(cxy) << PTR_SHIFT) | \
Note: See TracChangeset
for help on using the changeset viewer.