aboutsummaryrefslogtreecommitdiff
path: root/hw/spapr.h
diff options
context:
space:
mode:
authorBreno Leitao <brenohl@br.ibm.com>2011-09-28 16:53:16 +0000
committerAlexander Graf <agraf@suse.de>2011-10-06 09:48:09 +0200
commitac26f8c3891dde7a3fc7f24a3a87905df843d905 (patch)
tree094e85b6026005b5df614a9921089fd15432e84c /hw/spapr.h
parente6c866d417d1a09536f489e66c21cf49b7ec60b6 (diff)
pseries: Implement set-time-of-day RTAS function
Currently there is no implementation for set-time-of-day rtas function, which causes the following warning "setting the clock failed (-1)" on the guest. This patch just creates this function, get the timedate diff and store in the papr environment, so that the correct value will be returned by get-time-of-day. In order to try it, just adjust the hardware time, run hwclock --systohc, so that, on when the system runs hwclock --hctosys, the value is correctly adjusted, i.e. the host time plus the timediff. Signed-off-by: Breno Leitao <brenohl@br.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/spapr.h')
-rw-r--r--hw/spapr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/spapr.h b/hw/spapr.h
index ec910de5b0..6657c336f6 100644
--- a/hw/spapr.h
+++ b/hw/spapr.h
@@ -18,6 +18,7 @@ typedef struct sPAPREnvironment {
void *fdt_skel;
target_ulong entry_point;
int next_irq;
+ int rtc_offset;
} sPAPREnvironment;
#define H_SUCCESS 0