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); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"