|
@@ -34,15 +34,10 @@
|
|
ori v0, CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE
|
|
ori v0, CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE
|
|
dmtc0 v0, CP0_CVMMEMCTL_REG # Write the cavium mem control register
|
|
dmtc0 v0, CP0_CVMMEMCTL_REG # Write the cavium mem control register
|
|
dmfc0 v0, CP0_CVMCTL_REG # Read the cavium control register
|
|
dmfc0 v0, CP0_CVMCTL_REG # Read the cavium control register
|
|
-#ifdef CONFIG_CAVIUM_OCTEON_HW_FIX_UNALIGNED
|
|
|
|
# Disable unaligned load/store support but leave HW fixup enabled
|
|
# Disable unaligned load/store support but leave HW fixup enabled
|
|
|
|
+ # Needed for octeon specific memcpy
|
|
or v0, v0, 0x5001
|
|
or v0, v0, 0x5001
|
|
xor v0, v0, 0x1001
|
|
xor v0, v0, 0x1001
|
|
-#else
|
|
|
|
- # Disable unaligned load/store and HW fixup support
|
|
|
|
- or v0, v0, 0x5001
|
|
|
|
- xor v0, v0, 0x5001
|
|
|
|
-#endif
|
|
|
|
# Read the processor ID register
|
|
# Read the processor ID register
|
|
mfc0 v1, CP0_PRID_REG
|
|
mfc0 v1, CP0_PRID_REG
|
|
# Disable instruction prefetching (Octeon Pass1 errata)
|
|
# Disable instruction prefetching (Octeon Pass1 errata)
|