ia64/xen-unstable

changeset 8838:6ff2db607256

Clean up vmxassist/setup.c. It is no longer necessary to
switch to an alternate page table before entering the
real-mode emulator.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Feb 13 10:19:14 2006 +0100 (2006-02-13)
parents 4a9a39d08a06
children 4caca2046421
files tools/firmware/vmxassist/setup.c
line diff
     1.1 --- a/tools/firmware/vmxassist/setup.c	Sat Feb 11 13:06:49 2006 +0100
     1.2 +++ b/tools/firmware/vmxassist/setup.c	Mon Feb 13 10:19:14 2006 +0100
     1.3 @@ -353,8 +353,6 @@ setup_ctx(void)
     1.4  void
     1.5  start_bios(void)
     1.6  {
     1.7 -	unsigned long cr0;
     1.8 -
     1.9  	if (booting_cpu == 0)
    1.10  		printf("Start BIOS ...\n");
    1.11  	else
    1.12 @@ -362,11 +360,7 @@ start_bios(void)
    1.13  		       booting_cpu, booting_vector << 12);
    1.14  
    1.15  	initialize_real_mode = 1;
    1.16 -	cr0 = get_cr0();
    1.17 -#ifndef TEST
    1.18 -	set_cr0(cr0 | CR0_PE);
    1.19 -#endif
    1.20 -	set_cr0(cr0 & ~CR0_PE);
    1.21 +	set_cr0(get_cr0() & ~CR0_PE);
    1.22  	panic("vmxassist returned"); /* "cannot happen" */
    1.23  }
    1.24