left_this_page = ((cur & PAGE_MASK) + PAGE_SIZE) - cur; 
left_this_page = ((cur & HW_PAGE_MASK) + HW_PAGE_SIZE) - cur; 
void HvCall_writeLogBuffer(const void *buffer, u64 len){	struct HvLpBufferList hv_buf;	u64 left_this_page;	u64 cur = virt_to_abs(buffer);	while (len) {		hv_buf.addr = cur;		left_this_page = ((cur & PAGE_MASK) + PAGE_SIZE) - cur;		if (left_this_page > len)			left_this_page = len;		hv_buf.len = left_this_page;		len -= left_this_page;		HvCall2(HvCallBaseWriteLogBuffer,				virt_to_abs(&hv_buf),				left_this_page);		cur = (cur & PAGE_MASK) + PAGE_SIZE;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3c726f8dee6f55e96475574e9f645327e461884c/hvlog.c/buggy/arch/powerpc/platforms/iseries/hvlog.c