uc_mem_map(): enforce address & size to be aligned to 4KB. this fixes bunch of regress tests in regress/

This commit is contained in:
Nguyen Anh Quynh
2015-08-26 11:29:14 +08:00
parent e1b8bc2ed0
commit 70cdbf8c69
2 changed files with 14 additions and 9 deletions

View File

@ -390,9 +390,9 @@ uc_err uc_hook_del(uch handle, uch *h2);
@handle: handle returned by uc_open()
@address: starting address of the new memory region to be mapped in.
This address will be round down to 8KB boundary
@size: size of the new memory region to be mapped in. This will be round up to
the next 8KB boundary.
This address must be aligned to 4KB, or this will return with UC_ERR_MAP error.
@size: size of the new memory region to be mapped in.
This size must be multiple of 4KB, or this will return with UC_ERR_MAP error.
@return UC_ERR_OK on success, or other value on failure (refer to uc_err enum
for detailed error).