mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-02 10:43:57 +08:00
65ca668f58
Ensure the kernel correctly switches VSX registers correctly. VSX registers are all volatile, and despite the kernel preserving VSX across syscalls, it doesn't have to. Test that during interrupts and timeslices ending the VSX regs remain the same. Signed-off-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
23 lines
448 B
Makefile
23 lines
448 B
Makefile
TEST_PROGS := fpu_syscall fpu_preempt fpu_signal vmx_syscall vmx_preempt vmx_signal vsx_preempt
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
$(TEST_PROGS): ../harness.c
|
|
$(TEST_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec
|
|
|
|
fpu_syscall: fpu_asm.S
|
|
fpu_preempt: fpu_asm.S
|
|
fpu_signal: fpu_asm.S
|
|
|
|
vmx_syscall: vmx_asm.S
|
|
vmx_preempt: vmx_asm.S
|
|
vmx_signal: vmx_asm.S
|
|
|
|
vsx_preempt: CFLAGS += -mvsx
|
|
vsx_preempt: vsx_asm.S
|
|
|
|
include ../../lib.mk
|
|
|
|
clean:
|
|
rm -f $(TEST_PROGS) *.o
|