|
@@ -115,6 +115,22 @@ void read_persistent_clock(struct timespec *ts)
|
|
ts->tv_nsec = 0;
|
|
ts->tv_nsec = 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int get_c0_fdc_int(void)
|
|
|
|
+{
|
|
|
|
+ int mips_cpu_fdc_irq;
|
|
|
|
+
|
|
|
|
+ if (cpu_has_veic)
|
|
|
|
+ mips_cpu_fdc_irq = -1;
|
|
|
|
+ else if (gic_present)
|
|
|
|
+ mips_cpu_fdc_irq = gic_get_c0_fdc_int();
|
|
|
|
+ else if (cp0_fdc_irq >= 0)
|
|
|
|
+ mips_cpu_fdc_irq = MIPS_CPU_IRQ_BASE + cp0_fdc_irq;
|
|
|
|
+ else
|
|
|
|
+ mips_cpu_fdc_irq = -1;
|
|
|
|
+
|
|
|
|
+ return mips_cpu_fdc_irq;
|
|
|
|
+}
|
|
|
|
+
|
|
int get_c0_perfcount_int(void)
|
|
int get_c0_perfcount_int(void)
|
|
{
|
|
{
|
|
if (cpu_has_veic) {
|
|
if (cpu_has_veic) {
|