linux/include/asm-mips
Atsushi Nemoto 66218da212 [MIPS] Fix wrong checksum calculation on 64-bit MIPS
The commit 8e3d8433d8 ([NET]: MIPS
checksum annotations and cleanups) broke 64-bit MIPS.

The problem is the commit replaces some unsigned long with __be32.  On
64bit MIPS, a __be32 (i.e. unsigned int) value is represented as a
sign-extented 32-bit value in a 64-bit argument register.  So the
address 192.168.0.1 (0xc0a80001) is passed as 0xffffffffc0a80001 to
csum_tcpudp_nofold() but the asm code in the function expects
0x00000000c0a80001, therefore it returns a wrong checksum.  Explicit
cast to unsigned long is needed to drop high 32bit.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2007-01-24 19:23:22 +00:00
..
arc
ddb5xxx
dec [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
emma2rh
ip32
jmr3927 [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
lasat
mach-atlas
mach-au1x00 [PATCH] make au1xxx-ide compile again 2006-11-22 23:34:02 +00:00
mach-cobalt [MIPS] Rewrite GALILEO_INL/GALILEO_OUTL to GT_READ/GT_WRITE 2006-11-30 01:14:43 +00:00
mach-db1x00
mach-dec
mach-emma2rh
mach-ev64120
mach-excite
mach-generic
mach-ip22
mach-ip27 [MIPS] IP27: Don't drag <asm/sn/arch.h> into topology.h. 2006-12-12 01:46:24 +00:00
mach-ip32
mach-ja
mach-jazz
mach-jmr3927
mach-lasat
mach-mips
mach-ocelot
mach-ocelot3
mach-pb1x00
mach-pnx8550 [MIPS] PNX8550 fixups 2006-10-04 18:06:15 +01:00
mach-qemu
mach-rm [MIPS] Rename SNI_RM200_PCI to just SNI_RM preparing for more RM machines 2006-12-09 01:03:58 +00:00
mach-sibyte
mach-sim
mach-wrppmc
mach-yosemite
mips-boards
pci
sgi
sibyte [MIPS] Fixup migration to GENERIC_TIME 2006-10-31 20:13:23 +00:00
sn [MIPS] IP27: Move definition of nic_t to its sole user. 2006-12-12 01:46:24 +00:00
tx4927
tx4938 fix file specification in comments 2006-10-03 23:01:26 +02:00
vr41xx [MIPS] More vr41xx pt_regs fixups 2006-10-19 17:55:14 +01:00
xtalk
8253pit.h
a.out.h
abi.h
addrspace.h [MIPS] Use "long" for 64-bit values on 64-bit kernel. 2006-11-30 01:14:43 +00:00
apm.h
asm.h [MIPS] 16K & 64K page size fixes 2006-11-01 17:46:09 +00:00
asmmacro-32.h
asmmacro-64.h
asmmacro.h
atomic.h [MIPS] Cleanup memory barriers for weakly ordered systems. 2006-12-04 22:43:14 +00:00
auxvec.h
barrier.h [MIPS] Cleanup memory barriers for weakly ordered systems. 2006-12-04 22:43:14 +00:00
bcache.h
bitops.h [MIPS] Cleanup memory barriers for weakly ordered systems. 2006-12-04 22:43:14 +00:00
bootinfo.h [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
branch.h
break.h
bug.h [MIPS] Use conditional traps for BUG_ON on MIPS II and better. 2006-11-30 01:14:50 +00:00
bugs.h
byteorder.h
cache.h
cachectl.h
cacheflush.h [PATCH] Optimize D-cache alias handling on fork 2006-12-13 09:27:08 -08:00
cacheops.h
checksum.h [MIPS] Fix wrong checksum calculation on 64-bit MIPS 2007-01-24 19:23:22 +00:00
compat.h [MIPS] compat.h uses struct pt_regs so needs to include ptrace.h. 2006-12-12 01:46:24 +00:00
compiler.h
cpu-features.h
cpu-info.h [MIPS] Fix alignment hole in struct cache_desc; shrink struct. 2006-11-30 01:14:45 +00:00
cpu.h
cputime.h
current.h
debug.h
delay.h
device.h Driver core: add dev_archdata to struct device 2006-12-01 14:52:01 -08:00
div64.h [MIPS] Fixup migration to GENERIC_TIME 2006-10-31 20:13:23 +00:00
dma-mapping.h [PATCH] Pass struct dev pointer to dma_cache_sync() 2006-12-07 08:39:41 -08:00
dma.h [MIPS] Remove duplicate ISA DMA code for 0 DMA channel case. 2006-11-30 01:14:51 +00:00
ds1286.h
ds1742.h
dsp.h
elf.h
emergency-restart.h
errno.h
fcntl.h
fixmap.h [MIPS] Fix aliasing bug in copy_to_user_page / copy_from_user_page 2006-10-21 23:17:35 +01:00
floppy.h
fpregdef.h
fpu_emulator.h
fpu.h [MIPS] Make sure cpu_has_fpu is used only in atomic context 2006-10-09 23:20:48 +01:00
futex.h [PATCH] mm: pagefault_{disable,enable}() 2006-12-07 08:39:21 -08:00
gdb-stub.h
gfx.h
gt64120.h [MIPS] Rewrite GALILEO_INL/GALILEO_OUTL to GT_READ/GT_WRITE 2006-11-30 01:14:43 +00:00
gt64240.h
hardirq.h
hazards.h [MIPS] vr41xx: need one more nop with mtc0_tlbw_hazard() 2007-01-24 19:23:21 +00:00
highmem.h [PATCH] mm: k{,um}map_atomic() vs in_atomic() 2006-12-07 08:39:21 -08:00
hw_irq.h
i8259.h [MIPS] Import updates from i386's i8259.c 2006-12-06 20:16:09 +00:00
ide.h
inst.h
inventory.h
io.h [MIPS] page.h: remove __pa() usages. 2006-11-30 01:14:40 +00:00
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq_cpu.h
irq_regs.h [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
irq.h [MIPS] SMTC build fix 2007-01-08 21:41:04 +00:00
irqflags.h [MIPS] SMTC: Instant IPI replay. 2007-01-23 18:26:47 +00:00
isadep.h
jazz.h
jazzdma.h
Kbuild
kexec.h [MIPS] Add support for kexec 2006-11-30 01:14:44 +00:00
kmap_types.h
kspd.h
linkage.h
local.h
m48t35.h
m48t37.h
marvell.h [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
mc146818-time.h
mc146818rtc.h
mips_mt.h
mipsmtregs.h [MIPS] VSMP: Synchronize cp0 counters on bootup. 2006-10-31 20:13:22 +00:00
mipsprom.h
mipsregs.h [MIPS] Remove unused R10000 performance counter definitions. 2006-11-30 01:14:45 +00:00
mman.h
mmu_context.h
mmu.h
mmzone.h
module.h
msc01_ic.h [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
msgbuf.h
mutex.h
namei.h
nile4.h
paccess.h
page.h [PATCH] MIPS: Fix COW D-cache aliasing on fork 2006-12-13 09:27:08 -08:00
param.h
parport.h
pci.h [MIPS] Fix build of several IDE drivers by providing pci_get_legacy_ide_irq 2006-12-10 21:52:11 +00:00
percpu.h
pgalloc.h [MIPS] 16K & 64K page size fixes 2006-11-01 17:46:09 +00:00
pgtable-32.h [MIPS] pte_offset(dir,addr): parenthesis fix 2006-12-06 20:16:08 +00:00
pgtable-64.h [MIPS] pte_offset(dir,addr): parenthesis fix 2006-12-06 20:16:08 +00:00
pgtable-bits.h
pgtable.h [MIPS] page.h: remove __pa() usages. 2006-11-30 01:14:40 +00:00
pmon.h
poll.h
posix_types.h
prctl.h
prefetch.h
processor.h
ptrace.h [MIPS] Move die and die_if_kernel() from system.h to ptrace.h 2006-12-10 21:52:11 +00:00
qemu.h
r4kcache.h
reboot.h
reg.h
regdef.h
resource.h
rm9k-ocd.h
rtc.h
rtlx.h
scatterlist.h
sections.h
segment.h
semaphore.h
sembuf.h
serial.h [MIPS] Remove IT8172-based platforms, ITE 8172G and Globespan IVR support. 2006-10-03 17:59:17 +01:00
setup.h [PATCH] cleanup asm/setup.h userspace visibility 2006-12-07 08:39:46 -08:00
sgialib.h
sgiarcs.h
sgidefs.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sim.h
smp.h
smtc_ipi.h
smtc_proc.h
smtc.h
sni.h
socket.h
sockios.h
sparsemem.h
spinlock_types.h
spinlock.h [MIPS] Cleanup memory barriers for weakly ordered systems. 2006-12-04 22:43:14 +00:00
stackframe.h [MIPS] Optimize and cleanup get_saved_sp, set_saved_sp 2006-10-11 19:30:59 +01:00
stacktrace.h
stat.h
statfs.h
string.h
suspend.h
sysmips.h
system.h [MIPS] Move die and die_if_kernel() from system.h to ptrace.h 2006-12-10 21:52:11 +00:00
termbits.h [PATCH] tty: preparatory structures for termios revamp 2006-12-08 08:28:56 -08:00
termios.h
thread_info.h [MIPS] Fix APM build 2007-01-24 19:23:21 +00:00
time.h [MIPS] mips HPT cleanup: make clocksource_mips public 2006-11-30 01:14:49 +00:00
timex.h
titan_dep.h
tlb.h
tlbdebug.h
tlbflush.h
topology.h
traps.h
tx3912.h
types.h [PATCH] Centralise definitions of sector_t and blkcnt_t 2006-12-04 19:41:15 -08:00
uaccess.h
ucontext.h
unaligned.h
unistd.h [PATCH] remove kernel syscalls 2006-12-07 08:39:37 -08:00
user.h
vga.h
vpe.h
war.h [MIPS] Rename SNI_RM200_PCI to just SNI_RM preparing for more RM machines 2006-12-09 01:03:58 +00:00
watch.h
wbflush.h
xor.h
xxs1500.h