aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lib/csum_partial.S
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 15:50:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 15:50:54 -0400
commitbfaf245022b4b8661af2e35f467cf0e91943c24c (patch)
treeb5a6ee49a047557a791eb897c8c9545a155e36b7 /arch/mips/lib/csum_partial.S
parent96d928ed75c4ba4253e82910a697ec7b06ace8b4 (diff)
parent3e20a26b02bd4f24945c87407df51948dd488620 (diff)
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle: "This is the main pull request for MIPS for Linux 4.1. Most noteworthy: - Add more Octeon-optimized crypto functions - Octeon crypto preemption and locking fixes - Little endian support for Octeon - Use correct CSR to soft reset Octeons - Support LEDs on the Octeon-based DSR-1000N - Fix PCI interrupt mapping for the Octeon-based DSR-1000N - Mark prom_free_prom_memory() as __init for a number of systems - Support for Imagination's Pistachio SOC. This includes arch and CLK bits. I'd like to merge pinctrl bits later - Improve parallelism of csum_partial for certain pipelines - Organize DTB files in subdirs like other architectures - Implement read_sched_clock for all MIPS platforms other than Octeon - Massive series of 38 fixes and cleanups for the FPU emulator / kernel - Further FPU remulator work to support new features. This sits on a separate branch which also has been pulled into the 4.1 KVM branch - Clean up and fixes for the SEAD3 eval board; remove unused file - Various updates for Netlogic platforms - A number of small updates for Loongson 3 platforms - Increase the memory limit for ATH79 platforms to 256MB - A fair number of fixes and updates for BCM47xx platforms - Finish the implementation of XPA support - MIPS FDC support. No, not floppy controller but Fast Debug Channel :) - Detect the R16000 used in SGI legacy platforms - Fix Kconfig dependencies for the SSB bus support" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (265 commits) MIPS: Makefile: Fix MIPS ASE detection code MIPS: asm: elf: Set O32 default FPU flags MIPS: BCM47XX: Fix detecting Microsoft MN-700 & Asus WL500G MIPS: Kconfig: Disable SMP/CPS for 64-bit MIPS: Hibernate: flush TLB entries earlier MIPS: smp-cps: cpu_set FPU mask if FPU present MIPS: lose_fpu(): Disable FPU when MSA enabled MIPS: ralink: add missing symbol for RALINK_ILL_ACC MIPS: ralink: Fix bad config symbol in PCI makefile. SSB: fix Kconfig dependencies MIPS: Malta: Detect and fix bad memsize values Revert "MIPS: Avoid pipeline stalls on some MIPS32R2 cores." MIPS: Octeon: Delete override of cpu_has_mips_r2_exec_hazard. MIPS: Fix cpu_has_mips_r2_exec_hazard. MIPS: kernel: entry.S: Set correct ISA level for mips_ihb MIPS: asm: spinlock: Fix addiu instruction for R10000_LLSC_WAR case MIPS: r4kcache: Use correct base register for MIPS R6 cache flushes MIPS: Kconfig: Fix typo for the r2-to-r6 emulator kernel parameter MIPS: unaligned: Fix regular load/store instruction emulation for EVA MIPS: unaligned: Surround load/store macros in do {} while statements ...
Diffstat (limited to 'arch/mips/lib/csum_partial.S')
-rw-r--r--arch/mips/lib/csum_partial.S38
1 files changed, 19 insertions, 19 deletions
diff --git a/arch/mips/lib/csum_partial.S b/arch/mips/lib/csum_partial.S
index 4c721e247ac9..ed88647b57e2 100644
--- a/arch/mips/lib/csum_partial.S
+++ b/arch/mips/lib/csum_partial.S
@@ -76,10 +76,10 @@
76 LOAD _t1, (offset + UNIT(1))(src); \ 76 LOAD _t1, (offset + UNIT(1))(src); \
77 LOAD _t2, (offset + UNIT(2))(src); \ 77 LOAD _t2, (offset + UNIT(2))(src); \
78 LOAD _t3, (offset + UNIT(3))(src); \ 78 LOAD _t3, (offset + UNIT(3))(src); \
79 ADDC(_t0, _t1); \
80 ADDC(_t2, _t3); \
79 ADDC(sum, _t0); \ 81 ADDC(sum, _t0); \
80 ADDC(sum, _t1); \ 82 ADDC(sum, _t2)
81 ADDC(sum, _t2); \
82 ADDC(sum, _t3)
83 83
84#ifdef USE_DOUBLE 84#ifdef USE_DOUBLE
85#define CSUM_BIGCHUNK(src, offset, sum, _t0, _t1, _t2, _t3) \ 85#define CSUM_BIGCHUNK(src, offset, sum, _t0, _t1, _t2, _t3) \
@@ -504,21 +504,21 @@ LEAF(csum_partial)
504 SUB len, len, 8*NBYTES 504 SUB len, len, 8*NBYTES
505 ADD src, src, 8*NBYTES 505 ADD src, src, 8*NBYTES
506 STORE(t0, UNIT(0)(dst), .Ls_exc\@) 506 STORE(t0, UNIT(0)(dst), .Ls_exc\@)
507 ADDC(sum, t0) 507 ADDC(t0, t1)
508 STORE(t1, UNIT(1)(dst), .Ls_exc\@) 508 STORE(t1, UNIT(1)(dst), .Ls_exc\@)
509 ADDC(sum, t1) 509 ADDC(sum, t0)
510 STORE(t2, UNIT(2)(dst), .Ls_exc\@) 510 STORE(t2, UNIT(2)(dst), .Ls_exc\@)
511 ADDC(sum, t2) 511 ADDC(t2, t3)
512 STORE(t3, UNIT(3)(dst), .Ls_exc\@) 512 STORE(t3, UNIT(3)(dst), .Ls_exc\@)
513 ADDC(sum, t3) 513 ADDC(sum, t2)
514 STORE(t4, UNIT(4)(dst), .Ls_exc\@) 514 STORE(t4, UNIT(4)(dst), .Ls_exc\@)
515 ADDC(sum, t4) 515 ADDC(t4, t5)
516 STORE(t5, UNIT(5)(dst), .Ls_exc\@) 516 STORE(t5, UNIT(5)(dst), .Ls_exc\@)
517 ADDC(sum, t5) 517 ADDC(sum, t4)
518 STORE(t6, UNIT(6)(dst), .Ls_exc\@) 518 STORE(t6, UNIT(6)(dst), .Ls_exc\@)
519 ADDC(sum, t6) 519 ADDC(t6, t7)
520 STORE(t7, UNIT(7)(dst), .Ls_exc\@) 520 STORE(t7, UNIT(7)(dst), .Ls_exc\@)
521 ADDC(sum, t7) 521 ADDC(sum, t6)
522 .set reorder /* DADDI_WAR */ 522 .set reorder /* DADDI_WAR */
523 ADD dst, dst, 8*NBYTES 523 ADD dst, dst, 8*NBYTES
524 bgez len, 1b 524 bgez len, 1b
@@ -544,13 +544,13 @@ LEAF(csum_partial)
544 SUB len, len, 4*NBYTES 544 SUB len, len, 4*NBYTES
545 ADD src, src, 4*NBYTES 545 ADD src, src, 4*NBYTES
546 STORE(t0, UNIT(0)(dst), .Ls_exc\@) 546 STORE(t0, UNIT(0)(dst), .Ls_exc\@)
547 ADDC(sum, t0) 547 ADDC(t0, t1)
548 STORE(t1, UNIT(1)(dst), .Ls_exc\@) 548 STORE(t1, UNIT(1)(dst), .Ls_exc\@)
549 ADDC(sum, t1) 549 ADDC(sum, t0)
550 STORE(t2, UNIT(2)(dst), .Ls_exc\@) 550 STORE(t2, UNIT(2)(dst), .Ls_exc\@)
551 ADDC(sum, t2) 551 ADDC(t2, t3)
552 STORE(t3, UNIT(3)(dst), .Ls_exc\@) 552 STORE(t3, UNIT(3)(dst), .Ls_exc\@)
553 ADDC(sum, t3) 553 ADDC(sum, t2)
554 .set reorder /* DADDI_WAR */ 554 .set reorder /* DADDI_WAR */
555 ADD dst, dst, 4*NBYTES 555 ADD dst, dst, 4*NBYTES
556 beqz len, .Ldone\@ 556 beqz len, .Ldone\@
@@ -649,13 +649,13 @@ LEAF(csum_partial)
649 nop # improves slotting 649 nop # improves slotting
650#endif 650#endif
651 STORE(t0, UNIT(0)(dst), .Ls_exc\@) 651 STORE(t0, UNIT(0)(dst), .Ls_exc\@)
652 ADDC(sum, t0) 652 ADDC(t0, t1)
653 STORE(t1, UNIT(1)(dst), .Ls_exc\@) 653 STORE(t1, UNIT(1)(dst), .Ls_exc\@)
654 ADDC(sum, t1) 654 ADDC(sum, t0)
655 STORE(t2, UNIT(2)(dst), .Ls_exc\@) 655 STORE(t2, UNIT(2)(dst), .Ls_exc\@)
656 ADDC(sum, t2) 656 ADDC(t2, t3)
657 STORE(t3, UNIT(3)(dst), .Ls_exc\@) 657 STORE(t3, UNIT(3)(dst), .Ls_exc\@)
658 ADDC(sum, t3) 658 ADDC(sum, t2)
659 .set reorder /* DADDI_WAR */ 659 .set reorder /* DADDI_WAR */
660 ADD dst, dst, 4*NBYTES 660 ADD dst, dst, 4*NBYTES
661 bne len, rem, 1b 661 bne len, rem, 1b