linux_sysvec.c (c56480a832354aff995f9d0bc5da4ccf27dfe78a) linux_sysvec.c (390c9ea029fdd3fb2ce61fc6b48617f0f7cd8754)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 1994-1996 Søren Schmidt
5 * Copyright (c) 2018 Turing Robotic Industries Inc.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 183 unchanged lines hidden (view full) ---

192 p = imgp->proc;
193
194 args = (Elf64_Auxargs *)imgp->auxargs;
195 argarray = pos = malloc(LINUX_AT_COUNT * sizeof(*pos), M_TEMP,
196 M_WAITOK | M_ZERO);
197
198 issetugid = p->p_flag & P_SUGID ? 1 : 0;
199 AUXARGS_ENTRY(pos, LINUX_AT_SYSINFO_EHDR, linux_vdso_base);
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 1994-1996 Søren Schmidt
5 * Copyright (c) 2018 Turing Robotic Industries Inc.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 183 unchanged lines hidden (view full) ---

192 p = imgp->proc;
193
194 args = (Elf64_Auxargs *)imgp->auxargs;
195 argarray = pos = malloc(LINUX_AT_COUNT * sizeof(*pos), M_TEMP,
196 M_WAITOK | M_ZERO);
197
198 issetugid = p->p_flag & P_SUGID ? 1 : 0;
199 AUXARGS_ENTRY(pos, LINUX_AT_SYSINFO_EHDR, linux_vdso_base);
200 AUXARGS_ENTRY(pos, LINUX_AT_MINSIGSTKSZ, LINUX_MINSIGSTKSZ);
200 AUXARGS_ENTRY(pos, LINUX_AT_HWCAP, *imgp->sysent->sv_hwcap);
201 AUXARGS_ENTRY(pos, AT_PAGESZ, args->pagesz);
202 AUXARGS_ENTRY(pos, LINUX_AT_CLKTCK, stclohz);
203 AUXARGS_ENTRY(pos, AT_PHDR, args->phdr);
204 AUXARGS_ENTRY(pos, AT_PHENT, args->phent);
205 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum);
206 AUXARGS_ENTRY(pos, AT_BASE, args->base);
207 AUXARGS_ENTRY(pos, AT_FLAGS, args->flags);

--- 608 unchanged lines hidden ---
201 AUXARGS_ENTRY(pos, LINUX_AT_HWCAP, *imgp->sysent->sv_hwcap);
202 AUXARGS_ENTRY(pos, AT_PAGESZ, args->pagesz);
203 AUXARGS_ENTRY(pos, LINUX_AT_CLKTCK, stclohz);
204 AUXARGS_ENTRY(pos, AT_PHDR, args->phdr);
205 AUXARGS_ENTRY(pos, AT_PHENT, args->phent);
206 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum);
207 AUXARGS_ENTRY(pos, AT_BASE, args->base);
208 AUXARGS_ENTRY(pos, AT_FLAGS, args->flags);

--- 608 unchanged lines hidden ---