Author: imp Date: Thu Jan 8 00:39:40 2015 New Revision: 276801 URL: https://svnweb.freebsd.org/changeset/base/276801
Log: Don't call the SSE routines when they aren't enabled (or even compiled into the kernel). Modified: head/sys/i386/i386/elf_machdep.c Modified: head/sys/i386/i386/elf_machdep.c ============================================================================== --- head/sys/i386/i386/elf_machdep.c Thu Jan 8 00:39:30 2015 (r276800) +++ head/sys/i386/i386/elf_machdep.c Thu Jan 8 00:39:40 2015 (r276801) @@ -47,6 +47,10 @@ __FBSDID("$FreeBSD$"); #include <machine/md_var.h> #include <machine/npx.h> +#if !defined(CPU_DISABLE_SSE) && defined(I686_CPU) +#define CPU_ENABLE_SSE +#endif + struct sysentvec elf32_freebsd_sysvec = { .sv_size = SYS_MAXSYSCALL, .sv_table = sysent, @@ -137,10 +141,13 @@ SYSINIT(kelf32, SI_SUB_EXEC, SI_ORDER_AN void elf32_dump_thread(struct thread *td, void *dst, size_t *off) { +#ifdef CPU_ENABLE_SSE void *buf; +#endif size_t len; len = 0; +#ifdef CPU_ENABLE_SSE if (use_xsave) { if (dst != NULL) { npxgetregs(td); @@ -153,6 +160,7 @@ elf32_dump_thread(struct thread *td, voi len += elf32_populate_note(NT_X86_XSTATE, NULL, NULL, cpu_max_ext_state_size, NULL); } +#endif *off = len; } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"