svn commit: r326216 - head/sys/powerpc/powerpc

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Nov 25 22:43:54 UTC 2017


Author: nwhitehorn
Date: Sat Nov 25 22:43:52 2017
New Revision: 326216
URL: https://svnweb.freebsd.org/changeset/base/326216

Log:
  On AIM systems, it is not actually possible to stop the CPU timer, so we
  just set it to a large default value (and inherit any previously existing
  value), hoping it never turns over. Instead, silently allow spurious
  one-shots from rollovers.
  
  MFC after:	10 days

Modified:
  head/sys/powerpc/powerpc/clock.c

Modified: head/sys/powerpc/powerpc/clock.c
==============================================================================
--- head/sys/powerpc/powerpc/clock.c	Sat Nov 25 22:42:05 2017	(r326215)
+++ head/sys/powerpc/powerpc/clock.c	Sat Nov 25 22:43:52 2017	(r326216)
@@ -141,6 +141,9 @@ decr_intr(struct trapframe *frame)
 	} else if (s->mode == 2) {
 		nticks = 1;
 		decr_et_stop(NULL);
+	} else if (s->mode == 0) {
+		/* Potemkin timer ran out without an event. Just reset it. */
+		decr_et_stop(NULL);
 	}
 
 	while (nticks-- > 0) {


More information about the svn-src-all mailing list