lkml.org 
[lkml]   [2008]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 26 of 55] xen: cpu_detect is 32-bit only
    Date
    From
    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    ---
    arch/x86/xen/enlighten.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
    --- a/arch/x86/xen/enlighten.c
    +++ b/arch/x86/xen/enlighten.c
    @@ -1365,12 +1365,12 @@
    /* set the limit of our address space */
    xen_reserve_top();

    +#ifdef CONFIG_X86_32
    /* set up basic CPUID stuff */
    cpu_detect(&new_cpu_data);
    -#ifdef CONFIG_X86_32
    new_cpu_data.hard_math = 1;
    + new_cpu_data.x86_capability[0] = cpuid_edx(1);
    #endif
    - new_cpu_data.x86_capability[0] = cpuid_edx(1);

    /* Poke various useful things into boot_params */
    boot_params.hdr.type_of_loader = (9 << 4) | 0;



    \
     
     \ /
      Last update: 2008-07-09 01:23    [W:0.048 / U:1.972 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site