ia64/xen-unstable

changeset 3948:48f375bb04c4

bitkeeper revision 1.1236.1.35 (4221cdcevFIhlA_vszZmPBjpl9nLjQ)

Set pagetable bits correctly (for Linux) in DOM0 builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@scramble.cl.cam.ac.uk
date Sun Feb 27 13:40:30 2005 +0000 (2005-02-27)
parents da2ab74c30e1
children 279cb235be66
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Sun Feb 27 10:38:13 2005 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Sun Feb 27 13:40:30 2005 +0000
     1.3 @@ -32,9 +32,11 @@ integer_param("dom0_mem", opt_dom0_mem);
     1.4  /* Allow ring-3 access in long mode as guest cannot use ring 1. */
     1.5  #define L1_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_USER)
     1.6  #endif
     1.7 -#define L2_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_USER)
     1.8 -#define L3_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_USER)
     1.9 -#define L4_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_USER)
    1.10 +/* Don't change these: Linux expects just these bits to be set. */
    1.11 +/* (And that includes the bogus _PAGE_DIRTY!) */
    1.12 +#define L2_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_DIRTY|_PAGE_USER)
    1.13 +#define L3_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_DIRTY|_PAGE_USER)
    1.14 +#define L4_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_DIRTY|_PAGE_USER)
    1.15  
    1.16  #define round_pgup(_p)    (((_p)+(PAGE_SIZE-1))&PAGE_MASK)
    1.17  #define round_pgdown(_p)  ((_p)&PAGE_MASK)