From a034df74fdb12c279d0096abb6d6f7b2b2fec24b Mon Sep 17 00:00:00 2001 From: dchagin Date: Sat, 9 Jan 2016 15:48:11 +0000 Subject: MFC r283410: Put linux_platform into the vdso to avoid copying it onto the stack at every exec. --- sys/compat/linux/linux_misc.c | 2 +- sys/compat/linux/linux_misc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 21e5bfc..b1a583d 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -732,7 +732,7 @@ linux_newuname(struct thread *td, struct linux_newuname_args *args) *p = '\0'; break; } - strlcpy(utsname.machine, linux_platform, LINUX_MAX_UTSNAME); + strlcpy(utsname.machine, linux_kplatform, LINUX_MAX_UTSNAME); return (copyout(&utsname, args->buf, sizeof(utsname))); } diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 1623422..2f2ead5 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -55,7 +55,7 @@ #define LINUX_MREMAP_MAYMOVE 1 #define LINUX_MREMAP_FIXED 2 -extern const char *linux_platform; +extern const char *linux_kplatform; /* * Non-standard aux entry types used in Linux ELF binaries. -- cgit v1.1