summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2014-07-11 17:46:54 +0200
committerRalf Baechle <ralf@linux-mips.org>2014-08-02 00:06:44 +0200
commit37cddff8e330a8771afcdab96d9d8ec385584daf (patch)
treea59241907d2f786c63ac03580b0c67a60dc3c3fc /lib
parentMIPS: disable preemption whilst initialising MSA (diff)
downloadlinux-37cddff8e330a8771afcdab96d9d8ec385584daf.tar.xz
linux-37cddff8e330a8771afcdab96d9d8ec385584daf.zip
MIPS: 16 byte align MSA vector context
The MSA specification upon first read appears to suggest that it is safe to perform vector loads & stores with arbitrary alignment. However it leaves provision for "address-dependent exceptions"... Align the vector context to a 16 byte boundary to ensure that the kernel cannot cause any such exceptions. Note that the fpu field of struct thread_struct was already at a 16 byte boundary within the struct, the introduction of FPU_ALIGN simply makes the requirement explicit. The only part of this impacting the generated kernel binary is ARCH_MIN_TASKALIGN. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7308/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions