]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: mm: fix numerous hideous errors in proc-arm740.S
authorWill Deacon <will.deacon@arm.com>
Tue, 22 Jan 2013 10:37:51 +0000 (10:37 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 26 Mar 2013 09:55:33 +0000 (09:55 +0000)
commit3ef52f2a00efc5f83ae6d40e55cae96ce275893f
tree176effeb48436fda5f89a2dc7999d4289428eaab
parent82d9b0d0c6c4cbd5d0022d7df5e6bf071a9eb6c7
ARM: mm: fix numerous hideous errors in proc-arm740.S

The setup code in proc-arm740.S is completely broken and, as far as I
can tell, always has been. I was >this< close to ripping it out, when a
740t core-tile materialised in the office, so I've had a crack at fixing
things up:

- Fix the ram/flash area calculations so that we actually set
  the condition flags before testing them...
- Fix the proc_info structure so that __cpu_io_mmu_flags are
  defined as 0, placing the __cpu_flush pointer at the correct
  offset
- Re-number the registers used during __arm740_setup so that
  we don't clobber the machine ID et al
- Advertise Thumb support via the hwcaps, since 740T is the only
  740 implementation.

Acked-by: Hyok S. Choi <hyok.choi@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/mm/proc-arm740.S