Date: Sun, 13 Jan 2019 02:28:37 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342984 - head/sys/powerpc/powerpc Message-ID: <201901130228.x0D2SbWi041463@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Sun Jan 13 02:28:37 2019 New Revision: 342984 URL: https://svnweb.freebsd.org/changeset/base/342984 Log: Add AT_HWCAP / AT_HWCAP2 to elf64_sysvec_v2. Summary: I was working on implementing ifuncs on powerpc64 elfv2 today, and I suddenly realized that the reason I was having so much trouble with AT_HWCAP and AT_HWCAP2 is they are missing from the sysentvec. After adding them, the auxv is being filled like it should. Submitted by: Brandon Bergren (git_bdragon.rtk0.net) Differential Revision: https://reviews.freebsd.org/D18575 Modified: head/sys/powerpc/powerpc/elf64_machdep.c Modified: head/sys/powerpc/powerpc/elf64_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/elf64_machdep.c Sun Jan 13 02:27:10 2019 (r342983) +++ head/sys/powerpc/powerpc/elf64_machdep.c Sun Jan 13 02:28:37 2019 (r342984) @@ -125,6 +125,9 @@ struct sysentvec elf64_freebsd_sysvec_v2 = { .sv_shared_page_len = PAGE_SIZE, .sv_schedtail = NULL, .sv_thread_detach = NULL, + .sv_trap = NULL, + .sv_hwcap = &cpu_features, + .sv_hwcap2 = &cpu_features2, }; INIT_SYSENTVEC(elf64_sysvec_v2, &elf64_freebsd_sysvec_v2);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901130228.x0D2SbWi041463>