diff options
author | dchagin <dchagin@FreeBSD.org> | 2016-01-09 15:48:11 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2016-01-09 15:48:11 +0000 |
commit | a034df74fdb12c279d0096abb6d6f7b2b2fec24b (patch) | |
tree | d94bd935147312dab2e67e6b9dfafa3f4041a20d /sys/i386 | |
parent | 5c3e282c6e2de5e789d3037361681fa9796a395a (diff) | |
download | FreeBSD-src-a034df74fdb12c279d0096abb6d6f7b2b2fec24b.zip FreeBSD-src-a034df74fdb12c279d0096abb6d6f7b2b2fec24b.tar.gz |
MFC r283410:
Put linux_platform into the vdso to avoid copying it onto the stack at
every exec.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 730e7ef..7c45200 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -118,7 +118,7 @@ static void linux_vdso_install(void *param); static void linux_vdso_deinstall(void *param); static int linux_szplatform; -const char *linux_platform; +const char *linux_kplatform; static eventhandler_tag linux_exit_tag; static eventhandler_tag linux_exec_tag; @@ -330,7 +330,7 @@ linux_copyout_strings(struct image_params *imgp) /* * install LINUX_PLATFORM */ - copyout(linux_platform, ((caddr_t)arginfo - linux_szplatform), + copyout(linux_kplatform, ((caddr_t)arginfo - linux_szplatform), linux_szplatform); /* @@ -1153,8 +1153,8 @@ linux_elf_modevent(module_t mod, int type, void *data) NULL, 1000); linux_thread_dtor_tag = EVENTHANDLER_REGISTER(thread_dtor, linux_thread_dtor, NULL, EVENTHANDLER_PRI_ANY); - linux_get_machine(&linux_platform); - linux_szplatform = roundup(strlen(linux_platform) + 1, + linux_get_machine(&linux_kplatform); + linux_szplatform = roundup(strlen(linux_kplatform) + 1, sizeof(char *)); linux_osd_jail_register(); stclohz = (stathz ? stathz : hz); |