XC_PAGE_SIZE and XC_PAGE_MASK should be used instead of PAGE_SIZE
and PAGE_MASK.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
mount->dom_id,
mount->gref,
PROT_READ | PROT_WRITE);
- BACK_RING_INIT(&mount->ring, sring, PAGE_SIZE);
+ BACK_RING_INIT(&mount->ring, sring, XC_PAGE_SIZE);
mount->nr_entries = mount->ring.nr_ents;
for (i = 0; i < MAX_FDS; i++)
mount->fds[i] = -1;
/* If there was any error with reading the directory, errno will be set */
error_code = errno;
/* Copy file names of the remaining non-NULL dirents into buf */
- assert(NAME_MAX < PAGE_SIZE >> 1);
+ assert(NAME_MAX < XC_PAGE_SIZE >> 1);
while(dirent != NULL &&
- (PAGE_SIZE - ((unsigned long)buf & PAGE_MASK) > NAME_MAX))
+ (XC_PAGE_SIZE - ((unsigned long)buf & XC_PAGE_MASK) > NAME_MAX))
{
int curr_length = strlen(dirent->d_name) + 1;