From owner-svn-src-stable-11@freebsd.org Fri Jul 21 06:56:08 2017 Return-Path: Delivered-To: svn-src-stable-11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6211AD9A592; Fri, 21 Jul 2017 06:56:08 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3BC466601F; Fri, 21 Jul 2017 06:56:08 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6L6u7lq072564; Fri, 21 Jul 2017 06:56:07 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6L6u663072557; Fri, 21 Jul 2017 06:56:06 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201707210656.v6L6u663072557@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Fri, 21 Jul 2017 06:56:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r321324 - in stable/11/sys: amd64/include arm64/include i386/include mips/include powerpc/include riscv/include sparc64/include X-SVN-Group: stable-11 X-SVN-Commit-Author: kib X-SVN-Commit-Paths: in stable/11/sys: amd64/include arm64/include i386/include mips/include powerpc/include riscv/include sparc64/include X-SVN-Commit-Revision: 321324 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2017 06:56:08 -0000 Author: kib Date: Fri Jul 21 06:56:06 2017 New Revision: 321324 URL: https://svnweb.freebsd.org/changeset/base/321324 Log: MFC r319871: Make struct syscall_args visible to userspace compilation environment from machine/proc.h, consistently on all architectures. Modified: stable/11/sys/amd64/include/proc.h stable/11/sys/arm64/include/proc.h stable/11/sys/i386/include/proc.h stable/11/sys/mips/include/proc.h stable/11/sys/powerpc/include/proc.h stable/11/sys/riscv/include/proc.h stable/11/sys/sparc64/include/proc.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/amd64/include/proc.h ============================================================================== --- stable/11/sys/amd64/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/amd64/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -70,6 +70,13 @@ struct mdproc { #define KINFO_PROC_SIZE 1088 #define KINFO_PROC32_SIZE 768 +struct syscall_args { + u_int code; + struct sysent *callp; + register_t args[8]; + int narg; +}; + #ifdef _KERNEL /* Get the current kernel thread stack usage. */ @@ -92,13 +99,6 @@ int amd64_set_ldt_data(struct thread *td, int start, i extern struct mtx dt_lock; extern int max_ldt_segment; - -struct syscall_args { - u_int code; - struct sysent *callp; - register_t args[8]; - int narg; -}; #endif /* _KERNEL */ #endif /* !_MACHINE_PROC_H_ */ Modified: stable/11/sys/arm64/include/proc.h ============================================================================== --- stable/11/sys/arm64/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/arm64/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -45,8 +45,6 @@ struct mdproc { #define KINFO_PROC_SIZE 1088 -#ifdef _KERNEL - #define MAXARGS 8 struct syscall_args { u_int code; @@ -54,7 +52,5 @@ struct syscall_args { register_t args[MAXARGS]; int narg; }; - -#endif #endif /* !_MACHINE_PROC_H_ */ Modified: stable/11/sys/i386/include/proc.h ============================================================================== --- stable/11/sys/i386/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/i386/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -60,6 +60,13 @@ struct mdproc { #define KINFO_PROC_SIZE 768 +struct syscall_args { + u_int code; + struct sysent *callp; + register_t args[8]; + int narg; +}; + #ifdef _KERNEL /* Get the current kernel thread stack usage. */ @@ -77,13 +84,6 @@ void user_ldt_free(struct thread *); void user_ldt_deref(struct proc_ldt *pldt); extern struct mtx dt_lock; - -struct syscall_args { - u_int code; - struct sysent *callp; - register_t args[8]; - int narg; -}; #endif /* _KERNEL */ #endif /* !_MACHINE_PROC_H_ */ Modified: stable/11/sys/mips/include/proc.h ============================================================================== --- stable/11/sys/mips/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/mips/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -79,7 +79,6 @@ struct mdproc { /* empty */ }; -#ifdef _KERNEL struct syscall_args { u_int code; struct sysent *callp; @@ -87,7 +86,6 @@ struct syscall_args { int narg; struct trapframe *trapframe; }; -#endif #ifdef __mips_n64 #define KINFO_PROC_SIZE 1088 Modified: stable/11/sys/powerpc/include/proc.h ============================================================================== --- stable/11/sys/powerpc/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/powerpc/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -53,6 +53,13 @@ struct mdproc { #define KINFO_PROC_SIZE 768 #endif +struct syscall_args { + u_int code; + struct sysent *callp; + register_t args[10]; + int narg; +}; + #ifdef _KERNEL #include @@ -65,13 +72,6 @@ struct mdproc { td->td_kstack_pages * PAGE_SIZE - \ (char *)&td; \ } while (0) - -struct syscall_args { - u_int code; - struct sysent *callp; - register_t args[10]; - int narg; -}; #endif #endif /* !_MACHINE_PROC_H_ */ Modified: stable/11/sys/riscv/include/proc.h ============================================================================== --- stable/11/sys/riscv/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/riscv/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -45,8 +45,6 @@ struct mdproc { #define KINFO_PROC_SIZE 1088 -#ifdef _KERNEL - #define MAXARGS 8 struct syscall_args { u_int code; @@ -54,7 +52,5 @@ struct syscall_args { register_t args[MAXARGS]; int narg; }; - -#endif #endif /* !_MACHINE_PROC_H_ */ Modified: stable/11/sys/sparc64/include/proc.h ============================================================================== --- stable/11/sys/sparc64/include/proc.h Fri Jul 21 06:52:40 2017 (r321323) +++ stable/11/sys/sparc64/include/proc.h Fri Jul 21 06:56:06 2017 (r321324) @@ -53,6 +53,13 @@ struct mdproc { #define KINFO_PROC_SIZE 1088 +struct syscall_args { + u_int code; + struct sysent *callp; + register_t args[8]; + int narg; +}; + #ifdef _KERNEL #include @@ -65,13 +72,6 @@ struct mdproc { td->td_kstack_pages * PAGE_SIZE - \ (char *)&td; \ } while (0) - -struct syscall_args { - u_int code; - struct sysent *callp; - register_t args[8]; - int narg; -}; #endif