···14711472config 64BIT_PHYS_ADDR1473 bool "Support for 64-bit physical address space"1474- depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32_R1 || CPU_MIPS64_R1) && 32BIT14751476config CPU_ADVANCED1477 bool "Override CPU Options"···1491 Say Y here if your CPU has the ll and sc instructions. Say Y here1492 for better performance, N if you don't know. You must say Y here1493 for multiprocessor machines.1494-1495-config CPU_HAS_LLDSCD1496- bool "lld/scd Instructions available" if CPU_ADVANCED1497- default y if !CPU_ADVANCED && !CPU_R3000 && !CPU_VR41XX && !CPU_TX39XX && !CPU_MIPS32_R11498- help1499- Say Y here if your CPU has the lld and scd instructions, the 64-bit1500- equivalents of ll and sc. Say Y here for better performance, N if1501- you don't know. You must say Y here for multiprocessor machines.15021503config CPU_HAS_WB1504 bool "Writeback Buffer available" if CPU_ADVANCED
···14711472config 64BIT_PHYS_ADDR1473 bool "Support for 64-bit physical address space"1474+ depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && 32BIT14751476config CPU_ADVANCED1477 bool "Override CPU Options"···1491 Say Y here if your CPU has the ll and sc instructions. Say Y here1492 for better performance, N if you don't know. You must say Y here1493 for multiprocessor machines.0000000014941495config CPU_HAS_WB1496 bool "Writeback Buffer available" if CPU_ADVANCED
···130# CONFIG_SIBYTE_DMA_PAGEOPS is not set131# CONFIG_MIPS_MT is not set132CONFIG_CPU_HAS_LLSC=y133-CONFIG_CPU_HAS_LLDSCD=y134CONFIG_CPU_HAS_SYNC=y135CONFIG_GENERIC_HARDIRQS=y136CONFIG_GENERIC_IRQ_PROBE=y
···130# CONFIG_SIBYTE_DMA_PAGEOPS is not set131# CONFIG_MIPS_MT is not set132CONFIG_CPU_HAS_LLSC=y0133CONFIG_CPU_HAS_SYNC=y134CONFIG_GENERIC_HARDIRQS=y135CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/cobalt_defconfig
···115# CONFIG_MIPS_MT is not set116# CONFIG_CPU_ADVANCED is not set117CONFIG_CPU_HAS_LLSC=y118-CONFIG_CPU_HAS_LLDSCD=y119CONFIG_CPU_HAS_SYNC=y120CONFIG_GENERIC_HARDIRQS=y121CONFIG_GENERIC_IRQ_PROBE=y
···115# CONFIG_MIPS_MT is not set116# CONFIG_CPU_ADVANCED is not set117CONFIG_CPU_HAS_LLSC=y0118CONFIG_CPU_HAS_SYNC=y119CONFIG_GENERIC_HARDIRQS=y120CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ddb5476_defconfig
···116# CONFIG_MIPS_MT is not set117# CONFIG_CPU_ADVANCED is not set118CONFIG_CPU_HAS_LLSC=y119-CONFIG_CPU_HAS_LLDSCD=y120CONFIG_CPU_HAS_SYNC=y121CONFIG_GENERIC_HARDIRQS=y122CONFIG_GENERIC_IRQ_PROBE=y
···116# CONFIG_MIPS_MT is not set117# CONFIG_CPU_ADVANCED is not set118CONFIG_CPU_HAS_LLSC=y0119CONFIG_CPU_HAS_SYNC=y120CONFIG_GENERIC_HARDIRQS=y121CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ddb5477_defconfig
···116# CONFIG_MIPS_MT is not set117# CONFIG_CPU_ADVANCED is not set118CONFIG_CPU_HAS_LLSC=y119-CONFIG_CPU_HAS_LLDSCD=y120CONFIG_CPU_HAS_SYNC=y121CONFIG_GENERIC_HARDIRQS=y122CONFIG_GENERIC_IRQ_PROBE=y
···116# CONFIG_MIPS_MT is not set117# CONFIG_CPU_ADVANCED is not set118CONFIG_CPU_HAS_LLSC=y0119CONFIG_CPU_HAS_SYNC=y120CONFIG_GENERIC_HARDIRQS=y121CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ev64120_defconfig
···118# CONFIG_64BIT_PHYS_ADDR is not set119# CONFIG_CPU_ADVANCED is not set120CONFIG_CPU_HAS_LLSC=y121-CONFIG_CPU_HAS_LLDSCD=y122CONFIG_CPU_HAS_SYNC=y123CONFIG_GENERIC_HARDIRQS=y124CONFIG_GENERIC_IRQ_PROBE=y
···118# CONFIG_64BIT_PHYS_ADDR is not set119# CONFIG_CPU_ADVANCED is not set120CONFIG_CPU_HAS_LLSC=y0121CONFIG_CPU_HAS_SYNC=y122CONFIG_GENERIC_HARDIRQS=y123CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ev96100_defconfig
···121# CONFIG_64BIT_PHYS_ADDR is not set122# CONFIG_CPU_ADVANCED is not set123CONFIG_CPU_HAS_LLSC=y124-CONFIG_CPU_HAS_LLDSCD=y125CONFIG_CPU_HAS_SYNC=y126CONFIG_GENERIC_HARDIRQS=y127CONFIG_GENERIC_IRQ_PROBE=y
···121# CONFIG_64BIT_PHYS_ADDR is not set122# CONFIG_CPU_ADVANCED is not set123CONFIG_CPU_HAS_LLSC=y0124CONFIG_CPU_HAS_SYNC=y125CONFIG_GENERIC_HARDIRQS=y126CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ip22_defconfig
···123# CONFIG_64BIT_PHYS_ADDR is not set124# CONFIG_CPU_ADVANCED is not set125CONFIG_CPU_HAS_LLSC=y126-CONFIG_CPU_HAS_LLDSCD=y127CONFIG_CPU_HAS_SYNC=y128CONFIG_GENERIC_HARDIRQS=y129CONFIG_GENERIC_IRQ_PROBE=y
···123# CONFIG_64BIT_PHYS_ADDR is not set124# CONFIG_CPU_ADVANCED is not set125CONFIG_CPU_HAS_LLSC=y0126CONFIG_CPU_HAS_SYNC=y127CONFIG_GENERIC_HARDIRQS=y128CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ip27_defconfig
···119CONFIG_CPU_HAS_PREFETCH=y120# CONFIG_MIPS_MT is not set121CONFIG_CPU_HAS_LLSC=y122-CONFIG_CPU_HAS_LLDSCD=y123CONFIG_CPU_HAS_SYNC=y124CONFIG_GENERIC_HARDIRQS=y125CONFIG_GENERIC_IRQ_PROBE=y
···119CONFIG_CPU_HAS_PREFETCH=y120# CONFIG_MIPS_MT is not set121CONFIG_CPU_HAS_LLSC=y0122CONFIG_CPU_HAS_SYNC=y123CONFIG_GENERIC_HARDIRQS=y124CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ip32_defconfig
···121CONFIG_RM7000_CPU_SCACHE=y122# CONFIG_MIPS_MT is not set123CONFIG_CPU_HAS_LLSC=y124-CONFIG_CPU_HAS_LLDSCD=y125CONFIG_CPU_HAS_SYNC=y126CONFIG_GENERIC_HARDIRQS=y127CONFIG_GENERIC_IRQ_PROBE=y
···121CONFIG_RM7000_CPU_SCACHE=y122# CONFIG_MIPS_MT is not set123CONFIG_CPU_HAS_LLSC=y0124CONFIG_CPU_HAS_SYNC=y125CONFIG_GENERIC_HARDIRQS=y126CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/it8172_defconfig
···117# CONFIG_MIPS_MT is not set118# CONFIG_CPU_ADVANCED is not set119CONFIG_CPU_HAS_LLSC=y120-CONFIG_CPU_HAS_LLDSCD=y121CONFIG_CPU_HAS_SYNC=y122CONFIG_GENERIC_HARDIRQS=y123CONFIG_GENERIC_IRQ_PROBE=y
···117# CONFIG_MIPS_MT is not set118# CONFIG_CPU_ADVANCED is not set119CONFIG_CPU_HAS_LLSC=y0120CONFIG_CPU_HAS_SYNC=y121CONFIG_GENERIC_HARDIRQS=y122CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ivr_defconfig
···114# CONFIG_MIPS_MT is not set115# CONFIG_CPU_ADVANCED is not set116CONFIG_CPU_HAS_LLSC=y117-CONFIG_CPU_HAS_LLDSCD=y118CONFIG_CPU_HAS_SYNC=y119CONFIG_GENERIC_HARDIRQS=y120CONFIG_GENERIC_IRQ_PROBE=y
···114# CONFIG_MIPS_MT is not set115# CONFIG_CPU_ADVANCED is not set116CONFIG_CPU_HAS_LLSC=y0117CONFIG_CPU_HAS_SYNC=y118CONFIG_GENERIC_HARDIRQS=y119CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/jaguar-atx_defconfig
···124# CONFIG_64BIT_PHYS_ADDR is not set125# CONFIG_CPU_ADVANCED is not set126CONFIG_CPU_HAS_LLSC=y127-CONFIG_CPU_HAS_LLDSCD=y128CONFIG_CPU_HAS_SYNC=y129CONFIG_GENERIC_HARDIRQS=y130CONFIG_GENERIC_IRQ_PROBE=y
···124# CONFIG_64BIT_PHYS_ADDR is not set125# CONFIG_CPU_ADVANCED is not set126CONFIG_CPU_HAS_LLSC=y0127CONFIG_CPU_HAS_SYNC=y128CONFIG_GENERIC_HARDIRQS=y129CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/lasat200_defconfig
···121# CONFIG_64BIT_PHYS_ADDR is not set122# CONFIG_CPU_ADVANCED is not set123CONFIG_CPU_HAS_LLSC=y124-CONFIG_CPU_HAS_LLDSCD=y125CONFIG_CPU_HAS_SYNC=y126CONFIG_GENERIC_HARDIRQS=y127CONFIG_GENERIC_IRQ_PROBE=y
···121# CONFIG_64BIT_PHYS_ADDR is not set122# CONFIG_CPU_ADVANCED is not set123CONFIG_CPU_HAS_LLSC=y0124CONFIG_CPU_HAS_SYNC=y125CONFIG_GENERIC_HARDIRQS=y126CONFIG_GENERIC_IRQ_PROBE=y
+5-5
arch/mips/configs/malta_defconfig
···1#2# Automatically generated make config: don't edit3-# Linux kernel version: 2.6.15-rc24-# Thu Nov 24 01:06:35 20055#6CONFIG_MIPS=y7···87#88# CPU selection89#90-CONFIG_CPU_MIPS32_R1=y91-# CONFIG_CPU_MIPS32_R2 is not set92# CONFIG_CPU_MIPS64_R1 is not set93# CONFIG_CPU_MIPS64_R2 is not set94# CONFIG_CPU_R3000 is not set···112CONFIG_SYS_HAS_CPU_NEVADA=y113CONFIG_SYS_HAS_CPU_RM7000=y114CONFIG_CPU_MIPS32=y115-CONFIG_CPU_MIPSR1=y116CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y117CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y118CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
···1#2# Automatically generated make config: don't edit3+# Linux kernel version: 2.6.15-rc54+# Fri Dec 23 02:21:03 20055#6CONFIG_MIPS=y7···87#88# CPU selection89#90+# CONFIG_CPU_MIPS32_R1 is not set91+CONFIG_CPU_MIPS32_R2=y92# CONFIG_CPU_MIPS64_R1 is not set93# CONFIG_CPU_MIPS64_R2 is not set94# CONFIG_CPU_R3000 is not set···112CONFIG_SYS_HAS_CPU_NEVADA=y113CONFIG_SYS_HAS_CPU_RM7000=y114CONFIG_CPU_MIPS32=y115+CONFIG_CPU_MIPSR2=y116CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y117CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y118CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
-1
arch/mips/configs/ocelot_3_defconfig
···122# CONFIG_64BIT_PHYS_ADDR is not set123# CONFIG_CPU_ADVANCED is not set124CONFIG_CPU_HAS_LLSC=y125-CONFIG_CPU_HAS_LLDSCD=y126CONFIG_CPU_HAS_SYNC=y127CONFIG_GENERIC_HARDIRQS=y128CONFIG_GENERIC_IRQ_PROBE=y
···122# CONFIG_64BIT_PHYS_ADDR is not set123# CONFIG_CPU_ADVANCED is not set124CONFIG_CPU_HAS_LLSC=y0125CONFIG_CPU_HAS_SYNC=y126CONFIG_GENERIC_HARDIRQS=y127CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ocelot_c_defconfig
···118CONFIG_CPU_HAS_PREFETCH=y119# CONFIG_MIPS_MT is not set120CONFIG_CPU_HAS_LLSC=y121-CONFIG_CPU_HAS_LLDSCD=y122CONFIG_CPU_HAS_SYNC=y123CONFIG_GENERIC_HARDIRQS=y124CONFIG_GENERIC_IRQ_PROBE=y
···118CONFIG_CPU_HAS_PREFETCH=y119# CONFIG_MIPS_MT is not set120CONFIG_CPU_HAS_LLSC=y0121CONFIG_CPU_HAS_SYNC=y122CONFIG_GENERIC_HARDIRQS=y123CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ocelot_defconfig
···123# CONFIG_64BIT_PHYS_ADDR is not set124# CONFIG_CPU_ADVANCED is not set125CONFIG_CPU_HAS_LLSC=y126-CONFIG_CPU_HAS_LLDSCD=y127CONFIG_CPU_HAS_SYNC=y128CONFIG_GENERIC_HARDIRQS=y129CONFIG_GENERIC_IRQ_PROBE=y
···123# CONFIG_64BIT_PHYS_ADDR is not set124# CONFIG_CPU_ADVANCED is not set125CONFIG_CPU_HAS_LLSC=y0126CONFIG_CPU_HAS_SYNC=y127CONFIG_GENERIC_HARDIRQS=y128CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/ocelot_g_defconfig
···121CONFIG_CPU_HAS_PREFETCH=y122# CONFIG_MIPS_MT is not set123CONFIG_CPU_HAS_LLSC=y124-CONFIG_CPU_HAS_LLDSCD=y125CONFIG_CPU_HAS_SYNC=y126CONFIG_GENERIC_HARDIRQS=y127CONFIG_GENERIC_IRQ_PROBE=y
···121CONFIG_CPU_HAS_PREFETCH=y122# CONFIG_MIPS_MT is not set123CONFIG_CPU_HAS_LLSC=y0124CONFIG_CPU_HAS_SYNC=y125CONFIG_GENERIC_HARDIRQS=y126CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/pnx8550-v2pci_defconfig
···116# CONFIG_64BIT_PHYS_ADDR is not set117CONFIG_CPU_ADVANCED=y118CONFIG_CPU_HAS_LLSC=y119-# CONFIG_CPU_HAS_LLDSCD is not set120# CONFIG_CPU_HAS_WB is not set121CONFIG_CPU_HAS_SYNC=y122CONFIG_GENERIC_HARDIRQS=y
···116# CONFIG_64BIT_PHYS_ADDR is not set117CONFIG_CPU_ADVANCED=y118CONFIG_CPU_HAS_LLSC=y0119# CONFIG_CPU_HAS_WB is not set120CONFIG_CPU_HAS_SYNC=y121CONFIG_GENERIC_HARDIRQS=y
-1
arch/mips/configs/rbhma4500_defconfig
···124# CONFIG_MIPS_MT is not set125CONFIG_CPU_ADVANCED=y126CONFIG_CPU_HAS_LLSC=y127-CONFIG_CPU_HAS_LLDSCD=y128CONFIG_CPU_HAS_WB=y129CONFIG_CPU_HAS_SYNC=y130CONFIG_GENERIC_HARDIRQS=y
···124# CONFIG_MIPS_MT is not set125CONFIG_CPU_ADVANCED=y126CONFIG_CPU_HAS_LLSC=y0127CONFIG_CPU_HAS_WB=y128CONFIG_CPU_HAS_SYNC=y129CONFIG_GENERIC_HARDIRQS=y
-1
arch/mips/configs/rm200_defconfig
···124# CONFIG_64BIT_PHYS_ADDR is not set125# CONFIG_CPU_ADVANCED is not set126CONFIG_CPU_HAS_LLSC=y127-CONFIG_CPU_HAS_LLDSCD=y128CONFIG_CPU_HAS_SYNC=y129CONFIG_GENERIC_HARDIRQS=y130CONFIG_GENERIC_IRQ_PROBE=y
···124# CONFIG_64BIT_PHYS_ADDR is not set125# CONFIG_CPU_ADVANCED is not set126CONFIG_CPU_HAS_LLSC=y0127CONFIG_CPU_HAS_SYNC=y128CONFIG_GENERIC_HARDIRQS=y129CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/sb1250-swarm_defconfig
···133# CONFIG_MIPS_MT is not set134CONFIG_SB1_PASS_1_WORKAROUNDS=y135CONFIG_CPU_HAS_LLSC=y136-CONFIG_CPU_HAS_LLDSCD=y137CONFIG_CPU_HAS_SYNC=y138CONFIG_GENERIC_HARDIRQS=y139CONFIG_GENERIC_IRQ_PROBE=y
···133# CONFIG_MIPS_MT is not set134CONFIG_SB1_PASS_1_WORKAROUNDS=y135CONFIG_CPU_HAS_LLSC=y0136CONFIG_CPU_HAS_SYNC=y137CONFIG_GENERIC_HARDIRQS=y138CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/configs/yosemite_defconfig
···118# CONFIG_64BIT_PHYS_ADDR is not set119# CONFIG_CPU_ADVANCED is not set120CONFIG_CPU_HAS_LLSC=y121-CONFIG_CPU_HAS_LLDSCD=y122CONFIG_CPU_HAS_SYNC=y123CONFIG_GENERIC_HARDIRQS=y124CONFIG_GENERIC_IRQ_PROBE=y
···118# CONFIG_64BIT_PHYS_ADDR is not set119# CONFIG_CPU_ADVANCED is not set120CONFIG_CPU_HAS_LLSC=y0121CONFIG_CPU_HAS_SYNC=y122CONFIG_GENERIC_HARDIRQS=y123CONFIG_GENERIC_IRQ_PROBE=y
-1
arch/mips/defconfig
···123# CONFIG_64BIT_PHYS_ADDR is not set124# CONFIG_CPU_ADVANCED is not set125CONFIG_CPU_HAS_LLSC=y126-CONFIG_CPU_HAS_LLDSCD=y127CONFIG_CPU_HAS_SYNC=y128CONFIG_GENERIC_HARDIRQS=y129CONFIG_GENERIC_IRQ_PROBE=y
···123# CONFIG_64BIT_PHYS_ADDR is not set124# CONFIG_CPU_ADVANCED is not set125CONFIG_CPU_HAS_LLSC=y0126CONFIG_CPU_HAS_SYNC=y127CONFIG_GENERIC_HARDIRQS=y128CONFIG_GENERIC_IRQ_PROBE=y
+32-7
arch/mips/kernel/cpu-probe.c
···435 }436}437000438static inline unsigned int decode_config0(struct cpuinfo_mips *c)439{440 unsigned int config0;···450 isa = (config0 & MIPS_CONF_AT) >> 13;451 switch (isa) {452 case 0:453- c->isa_level = MIPS_CPU_ISA_M32;000000000454 break;455 case 2:456- c->isa_level = MIPS_CPU_ISA_M64;000000000457 break;458 default:459- panic("Unsupported ISA type, cp0.config0.at: %d.", isa);460 }461462 return config0 & MIPS_CONF_M;000463}464465static inline unsigned int decode_config1(struct cpuinfo_mips *c)···592 break;593 case PRID_IMP_34K:594 c->cputype = CPU_34K;595- c->isa_level = MIPS_CPU_ISA_M32;596 break;597 }598}···670 switch (c->processor_id & 0xff00) {671 case PRID_IMP_PR4450:672 c->cputype = CPU_PR4450;673- c->isa_level = MIPS_CPU_ISA_M32;674 break;675 default:676 panic("Unknown Philips Core!"); /* REVISIT: die? */···713 if (c->options & MIPS_CPU_FPU) {714 c->fpu_id = cpu_get_fpu_id();715716- if (c->isa_level == MIPS_CPU_ISA_M32 ||717- c->isa_level == MIPS_CPU_ISA_M64) {00718 if (c->fpu_id & MIPS_FPIR_3D)719 c->ases |= MIPS_ASE_MIPS3D;720 }
···507 return IRQ_HANDLED;508}5090000000000510asmlinkage void ll_timer_interrupt(int irq, struct pt_regs *regs)511{00512 irq_enter();513 kstat_this_cpu.irqs[irq]++;514515- /* we keep interrupt disabled all the time */516- timer_interrupt(irq, NULL, regs);000000051700000518 irq_exit();519}520···652 mips_hpt_init = c0_hpt_init;653 }654655- if ((current_cpu_data.isa_level == MIPS_CPU_ISA_M32) ||656- (current_cpu_data.isa_level == MIPS_CPU_ISA_I) ||657- (current_cpu_data.isa_level == MIPS_CPU_ISA_II))658 /*659 * We need to calibrate the counter but we don't have660 * 64-bit division.
···507 return IRQ_HANDLED;508}509510+int null_perf_irq(struct pt_regs *regs)511+{512+ return 0;513+}514+515+int (*perf_irq)(struct pt_regs *regs) = null_perf_irq;516+517+EXPORT_SYMBOL(null_perf_irq);518+EXPORT_SYMBOL(perf_irq);519+520asmlinkage void ll_timer_interrupt(int irq, struct pt_regs *regs)521{522+ int r2 = cpu_has_mips_r2;523+524 irq_enter();525 kstat_this_cpu.irqs[irq]++;526527+ /*528+ * Suckage alert:529+ * Before R2 of the architecture there was no way to see if a530+ * performance counter interrupt was pending, so we have to run the531+ * performance counter interrupt handler anyway.532+ */533+ if (!r2 || (read_c0_cause() & (1 << 26)))534+ if (perf_irq(regs))535+ goto out;536537+ /* we keep interrupt disabled all the time */538+ if (!r2 || (read_c0_cause() & (1 << 30)))539+ timer_interrupt(irq, NULL, regs);540+541+out:542 irq_exit();543}544···628 mips_hpt_init = c0_hpt_init;629 }630631+ if (cpu_has_mips32r1 || cpu_has_mips32r2 ||632+ (current_cpu_data.isa_level == MIPS_CPU_ISA_I) ||633+ (current_cpu_data.isa_level == MIPS_CPU_ISA_II))634 /*635 * We need to calibrate the counter but we don't have636 * 64-bit division.
+4-4
arch/mips/kernel/vpe.c
···99100 /* elfloader stuff */101 void *load_addr;102- u32 len;103 char *pbuffer;104- u32 plen;105106 unsigned long __start;107···253}254255/* Find some VPE program space */256-static void *alloc_progmem(u32 len)257{258#ifdef CONFIG_MIPS_VPE_LOADER_TOM259 /* this means you must tell linux to use less memory than you physically have */260- return (void *)((max_pfn * PAGE_SIZE) + KSEG0);261#else262 // simple grab some mem for now263 return kmalloc(len, GFP_KERNEL);
···99100 /* elfloader stuff */101 void *load_addr;102+ unsigned long len;103 char *pbuffer;104+ unsigned long plen;105106 unsigned long __start;107···253}254255/* Find some VPE program space */256+static void *alloc_progmem(unsigned long len)257{258#ifdef CONFIG_MIPS_VPE_LOADER_TOM259 /* this means you must tell linux to use less memory than you physically have */260+ return pfn_to_kaddr(max_pfn);261#else262 // simple grab some mem for now263 return kmalloc(len, GFP_KERNEL);
+1-1
arch/mips/lib/iomap.c
···3 *4 * This code is based on lib/iomap.c, by Linus Torvalds.5 *6- * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by
···3 *4 * This code is based on lib/iomap.c, by Linus Torvalds.5 *6+ * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by
-2
arch/mips/math-emu/dp_fint.c
···3334 CLEARCX;3536- xc = ( 0 ? xc : xc );37-38 if (x == 0)39 return ieee754dp_zero(0);40 if (x == 1 || x == -1)
···3334 CLEARCX;350036 if (x == 0)37 return ieee754dp_zero(0);38 if (x == 1 || x == -1)
-2
arch/mips/math-emu/dp_flong.c
···3334 CLEARCX;3536- xc = ( 0 ? xc : xc );37-38 if (x == 0)39 return ieee754dp_zero(0);40 if (x == 1 || x == -1)
···3334 CLEARCX;350036 if (x == 0)37 return ieee754dp_zero(0);38 if (x == 1 || x == -1)
-2
arch/mips/math-emu/sp_fint.c
···3334 CLEARCX;3536- xc = ( 0 ? xc : xc );37-38 if (x == 0)39 return ieee754sp_zero(0);40 if (x == 1 || x == -1)
···3334 CLEARCX;350036 if (x == 0)37 return ieee754sp_zero(0);38 if (x == 1 || x == -1)
-2
arch/mips/math-emu/sp_flong.c
···3334 CLEARCX;3536- xc = ( 0 ? xc : xc );37-38 if (x == 0)39 return ieee754sp_zero(0);40 if (x == 1 || x == -1)
···3334 CLEARCX;350036 if (x == 0)37 return ieee754sp_zero(0);38 if (x == 1 || x == -1)
+18-15
arch/mips/mips-boards/generic/time.c
···75 do_IRQ (mips_cpu_timer_irq, regs);76}77000078irqreturn_t mips_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)79{80-#ifdef CONFIG_SMP81 int cpu = smp_processor_id();8283 if (cpu == 0) {84 /*85- * CPU 0 handles the global timer interrupt job and process accounting86- * resets count/compare registers to trigger next timer int.087 */88- (void) timer_interrupt(irq, dev_id, regs);000000089 scroll_display_message();90- }91- else {92 /* Everyone else needs to reset the timer int here as93 ll_local_timer_interrupt doesn't */94 /*···114 local_timer_interrupt (irq, dev_id, regs);115 }1160117 return IRQ_HANDLED;118-#else119- irqreturn_t r;120-121- r = timer_interrupt(irq, dev_id, regs);122-123- scroll_display_message();124-125- return r;126-#endif127}128129/*
···75 do_IRQ (mips_cpu_timer_irq, regs);76}7778+extern int null_perf_irq(struct pt_regs *regs);79+80+extern int (*perf_irq)(struct pt_regs *regs);81+82irqreturn_t mips_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)83{84+ int r2 = cpu_has_mips_r2;85 int cpu = smp_processor_id();8687 if (cpu == 0) {88 /*89+ * CPU 0 handles the global timer interrupt job and process90+ * accounting resets count/compare registers to trigger next91+ * timer int.92 */93+ if (!r2 || (read_c0_cause() & (1 << 26)))94+ if (perf_irq(regs))95+ goto out;96+97+ /* we keep interrupt disabled all the time */98+ if (!r2 || (read_c0_cause() & (1 << 30)))99+ timer_interrupt(irq, NULL, regs);100+101 scroll_display_message();102+ } else {0103 /* Everyone else needs to reset the timer int here as104 ll_local_timer_interrupt doesn't */105 /*···103 local_timer_interrupt (irq, dev_id, regs);104 }105106+out:107 return IRQ_HANDLED;000000000108}109110/*
+2-2
arch/mips/mm/c-r4k.c
···1183 if (!sc_present)1184 return;11851186- if ((c->isa_level == MIPS_CPU_ISA_M32 ||1187- c->isa_level == MIPS_CPU_ISA_M64) &&1188 !(c->scache.flags & MIPS_CACHE_NOT_PRESENT))1189 panic("Dunno how to handle MIPS32 / MIPS64 second level cache");1190
···1183 if (!sc_present)1184 return;11851186+ if ((c->isa_level == MIPS_CPU_ISA_M32R1 ||1187+ c->isa_level == MIPS_CPU_ISA_M64R1) &&1188 !(c->scache.flags & MIPS_CACHE_NOT_PRESENT))1189 panic("Dunno how to handle MIPS32 / MIPS64 second level cache");1190
+3
arch/mips/oprofile/common.c
···75 int res;7677 switch (current_cpu_data.cputype) {0078 case CPU_24K:079 lmodel = &op_model_mipsxx;80 break;81
···75 int res;7677 switch (current_cpu_data.cputype) {78+ case CPU_5KC:79+ case CPU_20KC:80 case CPU_24K:81+ case CPU_25KF:82 lmodel = &op_model_mipsxx;83 break;84
+2-2
arch/mips/oprofile/op_impl.h
···1213struct pt_regs;1415-extern void null_perf_irq(struct pt_regs *regs);16-extern void (*perf_irq)(struct pt_regs *regs);1718/* Per-counter configuration as set via oprofilefs. */19struct op_counter_config {
···1213struct pt_regs;1415+extern int null_perf_irq(struct pt_regs *regs);16+extern int (*perf_irq)(struct pt_regs *regs);1718/* Per-counter configuration as set via oprofilefs. */19struct op_counter_config {
···114 }115}116117+static int mipsxx_perfcount_handler(struct pt_regs *regs)118{119 unsigned int counters = op_model_mipsxx.num_counters;120 unsigned int control;121 unsigned int counter;122+ int handled = 0;123124 switch (counters) {125#define HANDLE_COUNTER(n) \···129 (counter & M_COUNTER_OVERFLOW)) { \130 oprofile_add_sample(regs, n); \131 write_c0_perfcntr ## n(reg.counter[n]); \132+ handled = 1; \133 }134 HANDLE_COUNTER(3)135 HANDLE_COUNTER(2)136 HANDLE_COUNTER(1)137 HANDLE_COUNTER(0)138 }139+140+ return handled;141}142143#define M_CONFIG1_PC (1 << 4)···176 int counters;177178 counters = n_counters();179+ if (counters == 0) {180+ printk(KERN_ERR "Oprofile: CPU has no performance counters\n");181 return -ENODEV;182+ }183184 reset_counters(counters);185186 op_model_mipsxx.num_counters = counters;187 switch (current_cpu_data.cputype) {188+ case CPU_20KC:189+ op_model_mipsxx.cpu_type = "mips/20K";190+ break;191+192 case CPU_24K:193 op_model_mipsxx.cpu_type = "mips/24K";194+ break;195+196+ case CPU_25KF:197+ op_model_mipsxx.cpu_type = "mips/25K";198+ break;199+200+ case CPU_5KC:201+ op_model_mipsxx.cpu_type = "mips/5K";202 break;203204 default:
+1-1
arch/mips/pci/fixup-capcella.c
···1/*2 * fixup-cappcela.c, The ZAO Networks Capcella specific PCI fixups.3 *4- * Copyright (C) 2002,2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * fixup-cappcela.c, The ZAO Networks Capcella specific PCI fixups.3 *4+ * Copyright (C) 2002,2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/pci/fixup-mpc30x.c
···1/*2 * fixup-mpc30x.c, The Victor MP-C303/304 specific PCI fixups.3 *4- * Copyright (C) 2002,2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * fixup-mpc30x.c, The Victor MP-C303/304 specific PCI fixups.3 *4+ * Copyright (C) 2002,2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/pci/fixup-tb0219.c
···2 * fixup-tb0219.c, The TANBAC TB0219 specific PCI fixups.3 *4 * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp>5- * Copyright (C) 2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>6 *7 * This program is free software; you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by
···2 * fixup-tb0219.c, The TANBAC TB0219 specific PCI fixups.3 *4 * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp>5+ * Copyright (C) 2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>6 *7 * This program is free software; you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/pci/fixup-tb0226.c
···1/*2 * fixup-tb0226.c, The TANBAC TB0226 specific PCI fixups.3 *4- * Copyright (C) 2002-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * fixup-tb0226.c, The TANBAC TB0226 specific PCI fixups.3 *4+ * Copyright (C) 2002-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/pci/fixup-tb0287.c
···1/*2 * fixup-tb0287.c, The TANBAC TB0287 specific PCI fixups.3 *4- * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * fixup-tb0287.c, The TANBAC TB0287 specific PCI fixups.3 *4+ * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/pci/ops-vr41xx.c
···3 *4 * Copyright (C) 2001-2003 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6- * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by
···3 *4 * Copyright (C) 2001-2003 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6+ * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/pci/pci-vr41xx.c
···3 *4 * Copyright (C) 2001-2003 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6- * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)8 *9 * This program is free software; you can redistribute it and/or modify
···3 *4 * Copyright (C) 2001-2003 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6+ * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)8 *9 * This program is free software; you can redistribute it and/or modify
+1-1
arch/mips/pci/pci-vr41xx.h
···3 *4 * Copyright (C) 2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6- * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by
···3 *4 * Copyright (C) 2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6+ * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/vr41xx/casio-e55/setup.c
···1/*2 * setup.c, Setup for the CASIO CASSIOPEIA E-11/15/55/65.3 *4- * Copyright (C) 2002-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * setup.c, Setup for the CASIO CASSIOPEIA E-11/15/55/65.3 *4+ * Copyright (C) 2002-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+2-2
arch/mips/vr41xx/common/bcu.c
···3 *4 * Copyright (C) 2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>6- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···25 * - New creation, NEC VR4122 and VR4131 are supported.26 * - Added support for NEC VR4111 and VR4121.27 *28- * Yoichi Yuasa <yuasa@hh.iij4u.or.jp>29 * - Added support for NEC VR4133.30 */31#include <linux/kernel.h>
···3 *4 * Copyright (C) 2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>6+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···25 * - New creation, NEC VR4122 and VR4131 are supported.26 * - Added support for NEC VR4111 and VR4121.27 *28+ * Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>29 * - Added support for NEC VR4133.30 */31#include <linux/kernel.h>
+2-2
arch/mips/vr41xx/common/cmu.c
···3 *4 * Copyright (C) 2001-2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6- * Copuright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···25 * - New creation, NEC VR4122 and VR4131 are supported.26 * - Added support for NEC VR4111 and VR4121.27 *28- * Yoichi Yuasa <yuasa@hh.iij4u.or.jp>29 * - Added support for NEC VR4133.30 */31#include <linux/init.h>
···3 *4 * Copyright (C) 2001-2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6+ * Copuright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···25 * - New creation, NEC VR4122 and VR4131 are supported.26 * - Added support for NEC VR4111 and VR4121.27 *28+ * Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>29 * - Added support for NEC VR4133.30 */31#include <linux/init.h>
+2-2
arch/mips/vr41xx/common/icu.c
···3 *4 * Copyright (C) 2001-2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···25 * - New creation, NEC VR4122 and VR4131 are supported.26 * - Added support for NEC VR4111 and VR4121.27 *28- * Yoichi Yuasa <yuasa@hh.iij4u.or.jp>29 * - Coped with INTASSIGN of NEC VR4133.30 */31#include <linux/errno.h>
···3 *4 * Copyright (C) 2001-2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···25 * - New creation, NEC VR4122 and VR4131 are supported.26 * - Added support for NEC VR4111 and VR4121.27 *28+ * Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>29 * - Coped with INTASSIGN of NEC VR4133.30 */31#include <linux/errno.h>
+1-1
arch/mips/vr41xx/common/init.c
···1/*2 * init.c, Common initialization routines for NEC VR4100 series.3 *4- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * init.c, Common initialization routines for NEC VR4100 series.3 *4+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/vr41xx/common/int-handler.S
···35 * MontaVista Software Inc. <yyuasa@mvista.com> or <source@mvista.com>36 * - New creation, NEC VR4100 series are supported.37 *38- * Yoichi Yuasa <yuasa@hh.iij4u.or.jp>39 * - Coped with INTASSIGN of NEC VR4133.40 */41#include <asm/asm.h>
···35 * MontaVista Software Inc. <yyuasa@mvista.com> or <source@mvista.com>36 * - New creation, NEC VR4100 series are supported.37 *38+ * Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>39 * - Coped with INTASSIGN of NEC VR4133.40 */41#include <asm/asm.h>
+1-1
arch/mips/vr41xx/common/irq.c
···1/*2 * Interrupt handing routines for NEC VR4100 series.3 *4- * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * Interrupt handing routines for NEC VR4100 series.3 *4+ * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/vr41xx/common/pmu.c
···1/*2 * pmu.c, Power Management Unit routines for NEC VR4100 series.3 *4- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * pmu.c, Power Management Unit routines for NEC VR4100 series.3 *4+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/vr41xx/common/type.c
···1/*2 * type.c, System type for NEC VR4100 series.3 *4- * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * type.c, System type for NEC VR4100 series.3 *4+ * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
arch/mips/vr41xx/common/vrc4173.c
···3 *4 * Copyright (C) 2001-2003 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>6- * Copyright (C) 2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)8 *9 * This program is free software; you can redistribute it and/or modify
···3 *4 * Copyright (C) 2001-2003 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>6+ * Copyright (C) 2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)8 *9 * This program is free software; you can redistribute it and/or modify
+1-1
arch/mips/vr41xx/ibm-workpad/setup.c
···1/*2 * setup.c, Setup for the IBM WorkPad z50.3 *4- * Copyright (C) 2002-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * setup.c, Setup for the IBM WorkPad z50.3 *4+ * Copyright (C) 2002-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+2-2
drivers/char/tb0219.c
···1/*2 * Driver for TANBAC TB0219 base board.3 *4- * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by···27#include <asm/vr41xx/giu.h>28#include <asm/vr41xx/tb0219.h>2930-MODULE_AUTHOR("Yoichi Yuasa <yuasa@hh.iij4u.or.jp>");31MODULE_DESCRIPTION("TANBAC TB0219 base board driver");32MODULE_LICENSE("GPL");33
···1/*2 * Driver for TANBAC TB0219 base board.3 *4+ * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by···27#include <asm/vr41xx/giu.h>28#include <asm/vr41xx/tb0219.h>2930+MODULE_AUTHOR("Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>");31MODULE_DESCRIPTION("TANBAC TB0219 base board driver");32MODULE_LICENSE("GPL");33
+2-2
drivers/char/vr41xx_giu.c
···3 *4 * Copyright (C) 2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···35#include <asm/vr41xx/giu.h>36#include <asm/vr41xx/vr41xx.h>3738-MODULE_AUTHOR("Yoichi Yuasa <yuasa@hh.iij4u.or.jp>");39MODULE_DESCRIPTION("NEC VR4100 series General-purpose I/O Unit driver");40MODULE_LICENSE("GPL");41
···3 *4 * Copyright (C) 2002 MontaVista Software Inc.5 * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>6+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License as published by···35#include <asm/vr41xx/giu.h>36#include <asm/vr41xx/vr41xx.h>3738+MODULE_AUTHOR("Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>");39MODULE_DESCRIPTION("NEC VR4100 series General-purpose I/O Unit driver");40MODULE_LICENSE("GPL");41
+2-2
drivers/char/vr41xx_rtc.c
···1/*2 * Driver for NEC VR4100 series Real Time Clock unit.3 *4- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by···37#include <asm/uaccess.h>38#include <asm/vr41xx/vr41xx.h>3940-MODULE_AUTHOR("Yoichi Yuasa <yuasa@hh.iij4u.or.jp>");41MODULE_DESCRIPTION("NEC VR4100 series RTC driver");42MODULE_LICENSE("GPL");43
···1/*2 * Driver for NEC VR4100 series Real Time Clock unit.3 *4+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by···37#include <asm/uaccess.h>38#include <asm/vr41xx/vr41xx.h>3940+MODULE_AUTHOR("Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>");41MODULE_DESCRIPTION("NEC VR4100 series RTC driver");42MODULE_LICENSE("GPL");43
+2-2
drivers/pcmcia/vrc4171_card.c
···1/*2 * vrc4171_card.c, NEC VRC4171 Card Controller driver for Socket Services.3 *4- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by···33#include "i82365.h"3435MODULE_DESCRIPTION("NEC VRC4171 Card Controllers driver for Socket Services");36-MODULE_AUTHOR("Yoichi Yuasa <yuasa@hh.iij4u.or.jp>");37MODULE_LICENSE("GPL");3839#define CARD_MAX_SLOTS 2
···1/*2 * vrc4171_card.c, NEC VRC4171 Card Controller driver for Socket Services.3 *4+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by···33#include "i82365.h"3435MODULE_DESCRIPTION("NEC VRC4171 Card Controllers driver for Socket Services");36+MODULE_AUTHOR("Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>");37MODULE_LICENSE("GPL");3839#define CARD_MAX_SLOTS 2
+2-2
drivers/pcmcia/vrc4173_cardu.c
···6 * NEC VRC4173 CARDU driver for Socket Services7 * (This device doesn't support CardBus. it is supporting only 16bit PC Card.)8 *9- * Copyright 2002,2003 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>10 *11 * This program is free software; you can redistribute it and/or modify it12 * under the terms of the GNU General Public License as published by the···41#include "vrc4173_cardu.h"4243MODULE_DESCRIPTION("NEC VRC4173 CARDU driver for Socket Services");44-MODULE_AUTHOR("Yoichi Yuasa <yuasa@hh.iij4u.or.jp>");45MODULE_LICENSE("GPL");4647static int vrc4173_cardu_slots;
···6 * NEC VRC4173 CARDU driver for Socket Services7 * (This device doesn't support CardBus. it is supporting only 16bit PC Card.)8 *9+ * Copyright 2002,2003 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>10 *11 * This program is free software; you can redistribute it and/or modify it12 * under the terms of the GNU General Public License as published by the···41#include "vrc4173_cardu.h"4243MODULE_DESCRIPTION("NEC VRC4173 CARDU driver for Socket Services");44+MODULE_AUTHOR("Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>");45MODULE_LICENSE("GPL");4647static int vrc4173_cardu_slots;
+1-1
drivers/pcmcia/vrc4173_cardu.h
···5 * BRIEF MODULE DESCRIPTION6 * Include file for NEC VRC4173 CARDU.7 *8- * Copyright 2002 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>9 *10 * This program is free software; you can redistribute it and/or modify it11 * under the terms of the GNU General Public License as published by the
···5 * BRIEF MODULE DESCRIPTION6 * Include file for NEC VRC4173 CARDU.7 *8+ * Copyright 2002 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>9 *10 * This program is free software; you can redistribute it and/or modify it11 * under the terms of the GNU General Public License as published by the
+1-1
drivers/serial/vr41xx_siu.c
···1/*2 * Driver for NEC VR4100 series Serial Interface Unit.3 *4- * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * Based on drivers/serial/8250.c, by Russell King.7 *
···1/*2 * Driver for NEC VR4100 series Serial Interface Unit.3 *4+ * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * Based on drivers/serial/8250.c, by Russell King.7 *
+21-22
include/asm-mips/atomic.h
···24#define _ASM_ATOMIC_H2526#include <asm/cpu-features.h>027#include <asm/war.h>28-29-extern spinlock_t atomic_lock;3031typedef struct { volatile int counter; } atomic_t;32···84 } else {85 unsigned long flags;8687- spin_lock_irqsave(&atomic_lock, flags);88 v->counter += i;89- spin_unlock_irqrestore(&atomic_lock, flags);90 }91}92···126 } else {127 unsigned long flags;128129- spin_lock_irqsave(&atomic_lock, flags);130 v->counter -= i;131- spin_unlock_irqrestore(&atomic_lock, flags);132 }133}134···172 } else {173 unsigned long flags;174175- spin_lock_irqsave(&atomic_lock, flags);176 result = v->counter;177 result += i;178 v->counter = result;179- spin_unlock_irqrestore(&atomic_lock, flags);180 }181182 return result;···219 } else {220 unsigned long flags;221222- spin_lock_irqsave(&atomic_lock, flags);223 result = v->counter;224 result -= i;225 v->counter = result;226- spin_unlock_irqrestore(&atomic_lock, flags);227 }228229 return result;···276 } else {277 unsigned long flags;278279- spin_lock_irqsave(&atomic_lock, flags);280 result = v->counter;281 result -= i;282 if (result >= 0)283 v->counter = result;284- spin_unlock_irqrestore(&atomic_lock, flags);285 }286287 return result;···432 } else {433 unsigned long flags;434435- spin_lock_irqsave(&atomic_lock, flags);436 v->counter += i;437- spin_unlock_irqrestore(&atomic_lock, flags);438 }439}440···474 } else {475 unsigned long flags;476477- spin_lock_irqsave(&atomic_lock, flags);478 v->counter -= i;479- spin_unlock_irqrestore(&atomic_lock, flags);480 }481}482···520 } else {521 unsigned long flags;522523- spin_lock_irqsave(&atomic_lock, flags);524 result = v->counter;525 result += i;526 v->counter = result;527- spin_unlock_irqrestore(&atomic_lock, flags);528 }529530 return result;···567 } else {568 unsigned long flags;569570- spin_lock_irqsave(&atomic_lock, flags);571 result = v->counter;572 result -= i;573 v->counter = result;574- spin_unlock_irqrestore(&atomic_lock, flags);575 }576577 return result;···624 } else {625 unsigned long flags;626627- spin_lock_irqsave(&atomic_lock, flags);628 result = v->counter;629 result -= i;630 if (result >= 0)631 v->counter = result;632- spin_unlock_irqrestore(&atomic_lock, flags);633 }634635 return result;
···24#define _ASM_ATOMIC_H2526#include <asm/cpu-features.h>27+#include <asm/interrupt.h>28#include <asm/war.h>002930typedef struct { volatile int counter; } atomic_t;31···85 } else {86 unsigned long flags;8788+ local_irq_save(flags);89 v->counter += i;90+ local_irq_restore(flags);91 }92}93···127 } else {128 unsigned long flags;129130+ local_irq_save(flags);131 v->counter -= i;132+ local_irq_restore(flags);133 }134}135···173 } else {174 unsigned long flags;175176+ local_irq_save(flags);177 result = v->counter;178 result += i;179 v->counter = result;180+ local_irq_restore(flags);181 }182183 return result;···220 } else {221 unsigned long flags;222223+ local_irq_save(flags);224 result = v->counter;225 result -= i;226 v->counter = result;227+ local_irq_restore(flags);228 }229230 return result;···277 } else {278 unsigned long flags;279280+ local_irq_save(flags);281 result = v->counter;282 result -= i;283 if (result >= 0)284 v->counter = result;285+ local_irq_restore(flags);286 }287288 return result;···433 } else {434 unsigned long flags;435436+ local_irq_save(flags);437 v->counter += i;438+ local_irq_restore(flags);439 }440}441···475 } else {476 unsigned long flags;477478+ local_irq_save(flags);479 v->counter -= i;480+ local_irq_restore(flags);481 }482}483···521 } else {522 unsigned long flags;523524+ local_irq_save(flags);525 result = v->counter;526 result += i;527 v->counter = result;528+ local_irq_restore(flags);529 }530531 return result;···568 } else {569 unsigned long flags;570571+ local_irq_save(flags);572 result = v->counter;573 result -= i;574 v->counter = result;575+ local_irq_restore(flags);576 }577578 return result;···625 } else {626 unsigned long flags;627628+ local_irq_save(flags);629 result = v->counter;630 result -= i;631 if (result >= 0)632 v->counter = result;633+ local_irq_restore(flags);634 }635636 return result;
···233#endif234235#ifdef CONFIG_CPU_MIPSR2236+/*237+ * gcc has a tradition of misscompiling the previous construct using the238+ * address of a label as argument to inline assembler. Gas otoh has the239+ * annoying difference between la and dla which are only usable for 32-bit240+ * rsp. 64-bit code, so can't be used without conditional compilation.241+ * The alterantive is switching the assembler to 64-bit code which happens242+ * to work right even for 32-bit code ...243+ */244#define instruction_hazard() \245do { \246+ unsigned long tmp; \247+ \248 __asm__ __volatile__( \249+ " .set mips64r2 \n" \250+ " dla %0, 1f \n" \251 " jr.hb %0 \n" \252+ " .set mips0 \n" \253+ "1: \n" \254+ : "=r" (tmp)); \0255} while (0)256257#else
···103struct mips_dsp_state {104 dspreg_t dspr[NUM_DSP_REGS];105 unsigned int dspcontrol;106- unsigned short used_dsp;107};108109#define INIT_DSP {{0,},}
···103struct mips_dsp_state {104 dspreg_t dspr[NUM_DSP_REGS];105 unsigned int dspcontrol;0106};107108#define INIT_DSP {{0,},}
+1-1
include/asm-mips/vr41xx/capcella.h
···1/*2 * capcella.h, Include file for ZAO Networks Capcella.3 *4- * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * capcella.h, Include file for ZAO Networks Capcella.3 *4+ * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/e55.h
···1/*2 * e55.h, Include file for CASIO CASSIOPEIA E-10/15/55/65.3 *4- * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * e55.h, Include file for CASIO CASSIOPEIA E-10/15/55/65.3 *4+ * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/giu.h
···1/*2 * Include file for NEC VR4100 series General-purpose I/O Unit.3 *4- * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * Include file for NEC VR4100 series General-purpose I/O Unit.3 *4+ * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/mpc30x.h
···1/*2 * mpc30x.h, Include file for Victor MP-C303/304.3 *4- * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * mpc30x.h, Include file for Victor MP-C303/304.3 *4+ * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/pci.h
···1/*2 * Include file for NEC VR4100 series PCI Control Unit.3 *4- * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * Include file for NEC VR4100 series PCI Control Unit.3 *4+ * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/siu.h
···1/*2 * Include file for NEC VR4100 series Serial Interface Unit.3 *4- * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * Include file for NEC VR4100 series Serial Interface Unit.3 *4+ * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/tb0219.h
···1/*2 * tb0219.h, Include file for TANBAC TB0219.3 *4- * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * Modified for TANBAC TB0219:7 * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp>
···1/*2 * tb0219.h, Include file for TANBAC TB0219.3 *4+ * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * Modified for TANBAC TB0219:7 * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp>
+1-1
include/asm-mips/vr41xx/tb0226.h
···1/*2 * tb0226.h, Include file for TANBAC TB0226.3 *4- * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * tb0226.h, Include file for TANBAC TB0226.3 *4+ * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
+1-1
include/asm-mips/vr41xx/vr41xx.h
···7 * Copyright (C) 2001, 2002 Paul Mundt8 * Copyright (C) 2002 MontaVista Software, Inc.9 * Copyright (C) 2002 TimeSys Corp.10- * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>11 *12 * This program is free software; you can redistribute it and/or modify it13 * under the terms of the GNU General Public License as published by the
···7 * Copyright (C) 2001, 2002 Paul Mundt8 * Copyright (C) 2002 MontaVista Software, Inc.9 * Copyright (C) 2002 TimeSys Corp.10+ * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>11 *12 * This program is free software; you can redistribute it and/or modify it13 * under the terms of the GNU General Public License as published by the
+1-1
include/asm-mips/vr41xx/vrc4173.h
···4 * Copyright (C) 2000 Michael R. McDonald5 * Copyright (C) 2001-2003 Montavista Software Inc.6 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>7- * Copyright (C) 2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>8 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)9 *10 * This program is free software; you can redistribute it and/or modify
···4 * Copyright (C) 2000 Michael R. McDonald5 * Copyright (C) 2001-2003 Montavista Software Inc.6 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>7+ * Copyright (C) 2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>8 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)9 *10 * This program is free software; you can redistribute it and/or modify
+1-1
include/asm-mips/vr41xx/workpad.h
···1/*2 * workpad.h, Include file for IBM WorkPad z50.3 *4- * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by
···1/*2 * workpad.h, Include file for IBM WorkPad z50.3 *4+ * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by