3 * Copyright (C) 2001 Mike Corrigan IBM Corporation
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
12 #include <asm/abs_addr.h>
13 #include <asm/iSeries/HvCall.h>
14 #include <asm/iSeries/HvCallSc.h>
15 #include <asm/iSeries/HvTypes.h>
18 void HvCall_writeLogBuffer(const void *buffer
, u64 len
)
20 struct HvLpBufferList hv_buf
;
22 u64 cur
= virt_to_abs(buffer
);
26 left_this_page
= ((cur
& PAGE_MASK
) + PAGE_SIZE
) - cur
;
27 if (left_this_page
> len
)
29 hv_buf
.len
= left_this_page
;
30 len
-= left_this_page
;
31 HvCall2(HvCallBaseWriteLogBuffer
,
34 cur
= (cur
& PAGE_MASK
) + PAGE_SIZE
;