lkml.org 
[lkml]   [2009]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] xen: Check NX state before setting up GDT mapping

* Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
> index 0dd0c2c..5d701bf 100644
> --- a/arch/x86/xen/enlighten.c
> +++ b/arch/x86/xen/enlighten.c
> @@ -1083,6 +1083,11 @@ asmlinkage void __init xen_start_kernel(void)
>
> __supported_pte_mask |= _PAGE_IOMAP;
>
> +#ifdef CONFIG_X86_64
> + /* Work out if we support NX */
> + check_efer();
> +#endif
> +

btw., this #ifdef could sure be eliminated, right?

Ingo


\
 
 \ /
  Last update: 2009-09-23 14:39    [W:0.041 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site