5 * Definitions for SMTC multitasking on MIPS MT cores
8 #include <asm/mips_mt.h>
9 #include <asm/smtc_ipi.h>
12 * System-wide SMTC status information
15 extern unsigned int smtc_status
;
17 #define SMTC_TLB_SHARED 0x00000001
18 #define SMTC_MTC_ACTIVE 0x00000002
21 * TLB/ASID Management information
24 #define MAX_SMTC_TLBS 2
25 #define MAX_SMTC_ASIDS 256
30 typedef short asiduse
;
36 extern asiduse smtc_live_asid
[MAX_SMTC_TLBS
][MAX_SMTC_ASIDS
];
41 void smtc_get_new_mmu_context(struct mm_struct
*mm
, unsigned long cpu
);
42 void self_ipi(struct smtc_ipi
*);
43 void smtc_flush_tlb_asid(unsigned long asid
);
44 extern int smtc_build_cpu_map(int startslot
);
45 extern void smtc_prepare_cpus(int cpus
);
46 extern void smtc_smp_finish(void);
47 extern void smtc_boot_secondary(int cpu
, struct task_struct
*t
);
48 extern void smtc_cpus_done(void);
49 extern void smtc_init_secondary(void);
53 * Sharing the TLB between multiple VPEs means that the
54 * "random" index selection function is not allowed to
55 * select the current value of the Index register. To
56 * avoid additional TLB pressure, the Index registers
57 * are "parked" with an non-Valid value.
60 #define PARKED_INDEX ((unsigned int)0x80000000)
63 * Define low-level interrupt mask for IPIs, if necessary.
64 * By default, use SW interrupt 1, which requires no external
65 * hardware support, but which works only for single-core
68 #ifndef MIPS_CPU_IPI_IRQ
69 #define MIPS_CPU_IPI_IRQ 1
72 #endif /* _ASM_SMTC_MT_H */