diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-21 21:03:34 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-23 01:49:53 -0400 |
commit | ee3db0f2b6053b65f3b70253f5f810d9a3d67b28 (patch) | |
tree | cc9b037247b8d8afb75c4d6214428fb0a2dc65f2 /drivers/lguest/lg.h | |
parent | df29f43e650df29456804dabdb2611de914e7c0f (diff) |
Rename "cr3" to "gpgdir" to avoid x86-specific naming.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lg.h')
-rw-r--r-- | drivers/lguest/lg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index dc15b88208ff..f921684dbe5c 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h | |||
@@ -30,7 +30,7 @@ struct lguest_dma_info | |||
30 | 30 | ||
31 | struct pgdir | 31 | struct pgdir |
32 | { | 32 | { |
33 | unsigned long cr3; | 33 | unsigned long gpgdir; |
34 | pgd_t *pgdir; | 34 | pgd_t *pgdir; |
35 | }; | 35 | }; |
36 | 36 | ||
@@ -154,10 +154,10 @@ void copy_gdt_tls(const struct lguest *lg, struct desc_struct *gdt); | |||
154 | int init_guest_pagetable(struct lguest *lg, unsigned long pgtable); | 154 | int init_guest_pagetable(struct lguest *lg, unsigned long pgtable); |
155 | void free_guest_pagetable(struct lguest *lg); | 155 | void free_guest_pagetable(struct lguest *lg); |
156 | void guest_new_pagetable(struct lguest *lg, unsigned long pgtable); | 156 | void guest_new_pagetable(struct lguest *lg, unsigned long pgtable); |
157 | void guest_set_pmd(struct lguest *lg, unsigned long cr3, u32 i); | 157 | void guest_set_pmd(struct lguest *lg, unsigned long gpgdir, u32 i); |
158 | void guest_pagetable_clear_all(struct lguest *lg); | 158 | void guest_pagetable_clear_all(struct lguest *lg); |
159 | void guest_pagetable_flush_user(struct lguest *lg); | 159 | void guest_pagetable_flush_user(struct lguest *lg); |
160 | void guest_set_pte(struct lguest *lg, unsigned long cr3, | 160 | void guest_set_pte(struct lguest *lg, unsigned long gpgdir, |
161 | unsigned long vaddr, pte_t val); | 161 | unsigned long vaddr, pte_t val); |
162 | void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages); | 162 | void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages); |
163 | int demand_page(struct lguest *info, unsigned long cr2, int errcode); | 163 | int demand_page(struct lguest *info, unsigned long cr2, int errcode); |