machdep.c (159000) | machdep.c (159087) |
---|---|
1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 24 unchanged lines hidden (view full) --- 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 38 */ 39 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 24 unchanged lines hidden (view full) --- 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 38 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/i386/i386/machdep.c 159000 2006-05-28 06:51:57Z davidxu $"); | 41__FBSDID("$FreeBSD: head/sys/i386/i386/machdep.c 159087 2006-05-30 23:44:21Z davidxu $"); |
42 43#include "opt_apic.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" 47#include "opt_ddb.h" 48#include "opt_inet.h" 49#include "opt_ipx.h" --- 2655 unchanged lines hidden (view full) --- 2705#endif 2706 ((uintptr_t)(void *)addr & 0xF)) { 2707 do 2708 addr = (void *)((char *)addr + 4); 2709 while ((uintptr_t)(void *)addr & 0xF); 2710 bcopy(&mcp->mc_fpstate, addr, sizeof(mcp->mc_fpstate)); 2711 } 2712#ifdef DEV_NPX | 42 43#include "opt_apic.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" 47#include "opt_ddb.h" 48#include "opt_inet.h" 49#include "opt_ipx.h" --- 2655 unchanged lines hidden (view full) --- 2705#endif 2706 ((uintptr_t)(void *)addr & 0xF)) { 2707 do 2708 addr = (void *)((char *)addr + 4); 2709 while ((uintptr_t)(void *)addr & 0xF); 2710 bcopy(&mcp->mc_fpstate, addr, sizeof(mcp->mc_fpstate)); 2711 } 2712#ifdef DEV_NPX |
2713 /* clear high 16 bits of mxcsr to avoid security problem. */ 2714 if (cpu_fxsr) 2715 addr->sv_xmm.sv_env.en_mxcsr &= 0xFFFF; | 2713#ifdef CPU_ENABLE_SSE 2714 addr->sv_xmm.sv_env.en_mxcsr &= cpu_mxcsr_mask; 2715#endif |
2716 /* 2717 * XXX we violate the dubious requirement that npxsetregs() 2718 * be called with interrupts disabled. 2719 */ 2720 npxsetregs(td, addr); 2721#endif 2722 /* 2723 * Don't bother putting things back where they were in the --- 351 unchanged lines hidden --- | 2716 /* 2717 * XXX we violate the dubious requirement that npxsetregs() 2718 * be called with interrupts disabled. 2719 */ 2720 npxsetregs(td, addr); 2721#endif 2722 /* 2723 * Don't bother putting things back where they were in the --- 351 unchanged lines hidden --- |