Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164913
b: refs/heads/master
c: fb100d7
h: refs/heads/master
i:
  164911: 5b1fbc2
v: v3
  • Loading branch information
Rusty Russell committed Sep 23, 2009
1 parent 72a8dd3 commit 922626a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c1ea3dd718a1d93a726cb3e66665ac4170dcccd
refs/heads/master: fb100d78c04ff6053047625d0368d0d4b1d9912a
6 changes: 2 additions & 4 deletions trunk/drivers/lguest/page_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,11 +996,9 @@ static unsigned long setup_pagetables(struct lguest *lg,
if (copy_to_user(&pgdir[0], &pgd, sizeof(pgd)) != 0)
return -EFAULT;
/*
* And the third PGD entry (ie. addresses 3G-4G).
*
* FIXME: This assumes that PAGE_OFFSET for the Guest is 0xC0000000.
* And the other PGD entry to make the linear mapping at PAGE_OFFSET
*/
if (copy_to_user(&pgdir[3], &pgd, sizeof(pgd)) != 0)
if (copy_to_user(&pgdir[KERNEL_PGD_BOUNDARY], &pgd, sizeof(pgd)))
return -EFAULT;
#else
/*
Expand Down

0 comments on commit 922626a

Please sign in to comment.