Changeset 59e4864 in mainline for kernel/arch/ia64/include/cpu.h


Ignore:
Timestamp:
2008-11-11T08:00:42Z (16 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3c4a26
Parents:
a2a5529
Message:

Alfa of SMP support on IA64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/cpu.h

    ra2a5529 r59e4864  
    3939#include <arch/register.h>
    4040#include <arch/asm.h>
     41#include <arch/bootinfo.h>
    4142
    4243#define FAMILY_ITANIUM  0x7
     
    6465}
    6566
     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
     73static 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
     79static 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
     87static inline void ipi_send_ipi(int id,int eid,int intno)
     88{
     89        (bootinfo->sapic)[2*(id*256+eid)]=intno;
     90}
     91
     92
     93
    6694#endif
    6795
Note: See TracChangeset for help on using the changeset viewer.