[query] add UC_QUERY_PAGE_SIZE uc_query helper

Return the current page size used by the current arch.
Useful to call uc_mem_map() with memory/size aligned.

Signed-off-by: Nicolas PLANEL <nplanel@redhat.com>
This commit is contained in:
Nicolas PLANEL
2016-03-04 15:26:06 +11:00
parent 1ddebc7304
commit 1087ba9dea
3 changed files with 16 additions and 0 deletions

View File

@ -262,6 +262,7 @@ typedef struct uc_mem_region {
typedef enum uc_query_type {
// Dynamically query current hardware mode.
UC_QUERY_MODE = 1,
UC_QUERY_PAGE_SIZE,
} uc_query_type;
/*