On 02/08/2012 12:00 PM, Gerd Hoffmann wrote:
+/* set CMOS shutdown status register (index 0xF) as S3_resume(0xFE)
+   BIOS will read it and start S3 resume at POST Entry */
+static void rtc_notify_suspend(Notifier *notifier, void *data)
+{
+    RTCState *s = container_of(notifier, RTCState, suspend_notifier);
+    rtc_set_memory(&s->dev, 0xF, 0xFE);
+}
+

Out of curiosity, who would set this on real hardware? And since RTC memory is nvram, what happens if I remove the mains plug while the system is in S3?

Paolo

Reply via email to