msm_mdp: Update header for 4 layer support

Bug: 7626586
Change-Id: I37730470dc09b7a9d6336b1603f87efd98f45e97
Signed-off-by: Iliyan Malchev <malchev@google.com>
[MIPS] Set DT_DEBUG dyntab entry if it is writable

This is primarily for MIPS exutables that do not have a
DT_MIPS_RLD_MAP entry.

Change-Id: I4cf81034cc6e1a45d98e2f1f6741697f2ff5e179
Signed-off-by: Chris Dearman <chris@mips.com>
Updated memcpy:
1. Same code compiles for both 64bit and 32 bit
2. Same code as  used in glibc
3. Use the prepare-to-store prefetch for good performance and
will work on any MIPS chip where the cache line size is 128 bytes or less.

Change-Id: I9467f3bf7f2cb24443c4e14f4a04ba2c9ee32a54
Merge android-4.2.2_r1 into dev-mips-jb-mr1