Changeset 59e4864 in mainline for kernel/arch/ia64/include/cpu.h
- Timestamp:
- 2008-11-11T08:00:42Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3c4a26
- Parents:
- a2a5529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/cpu.h
ra2a5529 r59e4864 39 39 #include <arch/register.h> 40 40 #include <arch/asm.h> 41 #include <arch/bootinfo.h> 41 42 42 43 #define FAMILY_ITANIUM 0x7 … … 64 65 } 65 66 67 68 #define CR64_ID_SHIFT 24 69 #define CR64_ID_MASK 0xff000000 70 #define CR64_EID_SHIFT 16 71 #define CR64_EID_MASK 0xff0000 72 73 static inline int ia64_get_cpu_id(void) 74 { 75 uint64_t cr64=cr64_read(); 76 return ((CR64_ID_MASK)&cr64)>>CR64_ID_SHIFT; 77 } 78 79 static inline int ia64_get_cpu_eid(void) 80 { 81 uint64_t cr64=cr64_read(); 82 return ((CR64_EID_MASK)&cr64)>>CR64_EID_SHIFT; 83 } 84 85 86 87 static inline void ipi_send_ipi(int id,int eid,int intno) 88 { 89 (bootinfo->sapic)[2*(id*256+eid)]=intno; 90 } 91 92 93 66 94 #endif 67 95
Note:
See TracChangeset
for help on using the changeset viewer.