From 454d5512674a3d7b909bdae7b5e48eec3d16ac6c Mon Sep 17 00:00:00 2001 From: bouyer Date: Sat, 1 Feb 2014 20:07:07 +0000 Subject: [PATCH] Revert previous: calling fpuinit() leads to a panic, as a domU is not allowed to manipulate cr0 directly. Xen doesn't need this, the fpu is handled by the hypervisor. --- sys/arch/xen/xen/hypervisor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arch/xen/xen/hypervisor.c b/sys/arch/xen/xen/hypervisor.c index 758595dc3cf8..34b131ea33a8 100644 --- a/sys/arch/xen/xen/hypervisor.c +++ b/sys/arch/xen/xen/hypervisor.c @@ -1,4 +1,4 @@ -/* $NetBSD: hypervisor.c,v 1.64 2014/02/01 17:48:04 dsl Exp $ */ +/* $NetBSD: hypervisor.c,v 1.65 2014/02/01 20:07:07 bouyer Exp $ */ /* * Copyright (c) 2005 Manuel Bouyer. @@ -53,7 +53,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.64 2014/02/01 17:48:04 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.65 2014/02/01 20:07:07 bouyer Exp $"); #include #include @@ -256,7 +256,6 @@ hypervisor_attach(device_t parent, device_t self, void *aux) hac.hac_xencons.xa_device = "xencons"; config_found_ia(self, "xendevbus", &hac.hac_xencons, hypervisor_print); #endif - fpuinit(&cpu_info_primary); #ifdef DOM0OPS #if NPCI > 0 #if NACPICA > 0