summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2017-11-10 20:40:36 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2017-11-10 20:41:11 +0000
commit5001fda30a08f581fac0a2e3702eed3b5bbca2f3 (patch)
tree63f4ca94d6e818de77db7364d95b858e3eaa3453
parenta5d2534e6a7c00d6d07b25a15157bae43148f887 (diff)
downloadillumos-joyent-5001fda30a08f581fac0a2e3702eed3b5bbca2f3.tar.gz
OS-6407 lx: move mmap and mremap support in-kernel [fix DEBUG build]
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: Patrick Mooney <patrick.mooney@joyent.com>
-rw-r--r--usr/src/uts/common/brand/lx/syscall/lx_mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/brand/lx/syscall/lx_mem.c b/usr/src/uts/common/brand/lx/syscall/lx_mem.c
index cb4cc4ce5e..836edbfa14 100644
--- a/usr/src/uts/common/brand/lx/syscall/lx_mem.c
+++ b/usr/src/uts/common/brand/lx/syscall/lx_mem.c
@@ -1047,10 +1047,10 @@ lx_u2u_copy(void *src, void *dst, size_t len)
struct as *p_as = curproc->p_as;
/* Both sides should be page aligned since they're from smmap64 */
- ASSERT((src & PAGEOFFSET) == 0);
- ASSERT((dst & PAGEOFFSET) == 0);
+ ASSERT(((uintptr_t)src & PAGEOFFSET) == 0);
+ ASSERT(((uintptr_t)dst & PAGEOFFSET) == 0);
/* Both came from mmap, so they should be valid user pointers */
- ASSERT(src < USERLIMIT && dst < USERLIMIT);
+ ASSERT((uintptr_t)src < USERLIMIT && (uintptr_t)dst < USERLIMIT);
sp = src;
dp = dst;