summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2002-04-11 00:17:17 +0000
committerNeal H. Walfield <neal@gnu.org>2002-04-11 00:17:17 +0000
commitb2aff90c766078355ee26a3ab1be38d76533fe3c (patch)
tree580728c191375d11faa0db9a290b9c810d0f5d33
parent7ab490d028b58c6e0bc24f505248533f839905d2 (diff)
2002-04-10 Neal H Walfield,,, <neal@cs.uml.edu>
* pager-memcpy.c (pager_memcpy): Pass not the block but the byte offset of the page in question to pager_get_error.
-rw-r--r--libpager/pager-memcpy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpager/pager-memcpy.c b/libpager/pager-memcpy.c
index 0a5a4b7b..e5f4cdac 100644
--- a/libpager/pager-memcpy.c
+++ b/libpager/pager-memcpy.c
@@ -170,8 +170,7 @@ pager_memcpy (struct pager *pager, memory_object_t memobj,
void fault (int signo, long int sigcode, struct sigcontext *scp)
{
assert (scp->sc_error == EKERN_MEMORY_ERROR);
- err = pager_get_error (pager,
- (sigcode - window + offset) / vm_page_size);
+ err = pager_get_error (pager, sigcode - window + offset);
n -= sigcode - window;
vm_deallocate (mach_task_self (), window, window_size);
longjmp (buf, 1);