Use PTRIN().

This commit is contained in:
Marcel Moolenaar 2011-10-13 22:33:03 +00:00
parent 91a7fc18f0
commit 90fd594a1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226353

View File

@ -441,7 +441,7 @@ freebsd32_mprotect(struct thread *td, struct freebsd32_mprotect_args *uap)
{
struct mprotect_args ap;
ap.addr = (void *)(uintptr_t)uap->addr;
ap.addr = PTRIN(uap->addr);
ap.len = uap->len;
ap.prot = uap->prot;
#if defined(__amd64__) || defined(__ia64__)