From 048bb2d8f505eb50ab72959e2bee42f8a7879284 Mon Sep 17 00:00:00 2001 From: Clement Leger Date: Mon, 30 Mar 2020 19:45:21 +0200 Subject: [PATCH] kvx: rename k1c to kvx Summary: Pretty self explanatory Test Plan: NA Reviewers: O51 Linux Coolidge! Subscribers: #linux_coolidge_cc Differential Revision: https://phab.kalray.eu/D5006 --- clone.c | 2 +- configure.ac | 7 ++++--- src/linux/kvx/arch_defs_.h | 2 +- src/linux/{k1c => kvx}/arch_regs.c | 0 src/linux/{k1c => kvx}/get_error.c | 0 src/linux/{k1c => kvx}/get_scno.c | 0 src/linux/{k1c => kvx}/get_syscall_args.c | 0 src/linux/{k1c => kvx}/ioctls_arch0.h | 0 src/linux/{k1c => kvx}/ioctls_inc0.h | 0 src/linux/{k1c => kvx}/raw_syscall.h | 0 src/linux/{k1c => kvx}/set_error.c | 0 src/linux/{k1c => kvx}/set_scno.c | 0 src/linux/{k1c => kvx}/syscallent.h | 0 13 files changed, 6 insertions(+), 5 deletions(-) rename src/linux/{k1c => kvx}/arch_regs.c (100%) rename src/linux/{k1c => kvx}/get_error.c (100%) rename src/linux/{k1c => kvx}/get_scno.c (100%) rename src/linux/{k1c => kvx}/get_syscall_args.c (100%) rename src/linux/{k1c => kvx}/ioctls_arch0.h (100%) rename src/linux/{k1c => kvx}/ioctls_inc0.h (100%) rename src/linux/{k1c => kvx}/raw_syscall.h (100%) rename src/linux/{k1c => kvx}/set_error.c (100%) rename src/linux/{k1c => kvx}/set_scno.c (100%) rename src/linux/{k1c => kvx}/syscallent.h (100%) diff --git a/clone.c b/clone.c index dd90cd29fe3c4..f3ace30a96a8b 100644 --- a/clone.c +++ b/clone.c @@ -43,7 +43,7 @@ # define ARG_CTID ((current_personality != 1) ? 3 : 4) # define ARG_TLS ((current_personality != 1) ? 4 : 3) #elif defined ALPHA || defined TILE || defined OR1K || defined RISCV \ - || defined K1C + || defined KVX # define ARG_FLAGS 0 # define ARG_STACK 1 # define ARG_PTID 2 diff --git a/configure.ac b/configure.ac index e56d90ac6755b..fc880c380ebae 100644 --- a/configure.ac +++ b/configure.ac @@ -119,9 +119,10 @@ loongarch64) arch=loongarch64 karch=loongarch AC_DEFINE([LOONGARCH64], 1, [Define for the 64-bit LoongArch architecture.]) -k1*) - arch=k1c - AC_DEFINE([K1C], 1, [Define for the K1C architecture]) + ;; +kvx*) + arch=kvx + AC_DEFINE([KVX], 1, [Define for the kvx architecture]) ;; m68k) arch=m68k diff --git a/src/linux/kvx/arch_defs_.h b/src/linux/kvx/arch_defs_.h index a49aa39edd0a3..e516d3585e9a4 100644 --- a/src/linux/kvx/arch_defs_.h +++ b/src/linux/kvx/arch_defs_.h @@ -1 +1 @@ -#define PERSONALITY0_AUDIT_ARCH { AUDIT_ARCH_K1C, 0 } +#define PERSONALITY0_AUDIT_ARCH { AUDIT_ARCH_KVX, 0 } diff --git a/src/linux/k1c/arch_regs.c b/src/linux/kvx/arch_regs.c similarity index 100% rename from src/linux/k1c/arch_regs.c rename to src/linux/kvx/arch_regs.c diff --git a/src/linux/k1c/get_error.c b/src/linux/kvx/get_error.c similarity index 100% rename from src/linux/k1c/get_error.c rename to src/linux/kvx/get_error.c diff --git a/src/linux/k1c/get_scno.c b/src/linux/kvx/get_scno.c similarity index 100% rename from src/linux/k1c/get_scno.c rename to src/linux/kvx/get_scno.c diff --git a/src/linux/k1c/get_syscall_args.c b/src/linux/kvx/get_syscall_args.c similarity index 100% rename from src/linux/k1c/get_syscall_args.c rename to src/linux/kvx/get_syscall_args.c diff --git a/src/linux/k1c/ioctls_arch0.h b/src/linux/kvx/ioctls_arch0.h similarity index 100% rename from src/linux/k1c/ioctls_arch0.h rename to src/linux/kvx/ioctls_arch0.h diff --git a/src/linux/k1c/ioctls_inc0.h b/src/linux/kvx/ioctls_inc0.h similarity index 100% rename from src/linux/k1c/ioctls_inc0.h rename to src/linux/kvx/ioctls_inc0.h diff --git a/src/linux/k1c/raw_syscall.h b/src/linux/kvx/raw_syscall.h similarity index 100% rename from src/linux/k1c/raw_syscall.h rename to src/linux/kvx/raw_syscall.h diff --git a/src/linux/k1c/set_error.c b/src/linux/kvx/set_error.c similarity index 100% rename from src/linux/k1c/set_error.c rename to src/linux/kvx/set_error.c diff --git a/src/linux/k1c/set_scno.c b/src/linux/kvx/set_scno.c similarity index 100% rename from src/linux/k1c/set_scno.c rename to src/linux/kvx/set_scno.c diff --git a/src/linux/k1c/syscallent.h b/src/linux/kvx/syscallent.h similarity index 100% rename from src/linux/k1c/syscallent.h rename to src/linux/kvx/syscallent.h