From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:45:28 +0000 Subject: [PATCH] add boot partition size --- kernel/tools/testing/selftests/powerpc/math/vmx_syscall.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/kernel/tools/testing/selftests/powerpc/math/vmx_syscall.c b/kernel/tools/testing/selftests/powerpc/math/vmx_syscall.c index a017918..03c78df 100644 --- a/kernel/tools/testing/selftests/powerpc/math/vmx_syscall.c +++ b/kernel/tools/testing/selftests/powerpc/math/vmx_syscall.c @@ -1,10 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2015, Cyril Bur, IBM Corp. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. * * This test attempts to see if the VMX registers change across a syscall (fork). */ @@ -53,9 +49,14 @@ * Setup an environment with much context switching */ pid_t pid2; - pid_t pid = fork(); + pid_t pid; int ret; int child_ret; + + // vcmpequd used in vmx_asm.S is v2.07 + SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07)); + + pid = fork(); FAIL_IF(pid == -1); pid2 = fork(); -- Gitblit v1.6.2