]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Rework FPU stack placement macros and move to header file
authorCyril Bur <cyrilbur@gmail.com>
Fri, 23 Sep 2016 06:18:14 +0000 (16:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:10:11 +0000 (20:10 +1100)
commiteeefc6ff72f640ff83d633e8da6f897547074698
treead5e0013f0bf9bdad486bf7219aa263f84197f49
parent925d4465f8d0dc5688f59bf708aaff5d9efa7652
selftests/powerpc: Rework FPU stack placement macros and move to header file

The FPU regs are placed at the top of the stack frame. Currently the
position expected to be passed to the macro. The macros now should be
passed the stack frame size and from there they can calculate where to
put the regs, this makes the use simpler.

Also move them to a header file to be used in an different area of the
powerpc selftests

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/fpu_asm.h [new file with mode: 0644]
tools/testing/selftests/powerpc/math/fpu_asm.S