Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2010 17:08:37 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209901 - head/sys/x86/x86
Message-ID:  <201007111708.o6BH8bRe038162@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Jul 11 17:08:37 2010
New Revision: 209901
URL: http://svn.freebsd.org/changeset/base/209901

Log:
  Make kernel panic with reasonable message if no usable event timer found.

Modified:
  head/sys/x86/x86/timeevents.c

Modified: head/sys/x86/x86/timeevents.c
==============================================================================
--- head/sys/x86/x86/timeevents.c	Sun Jul 11 16:47:45 2010	(r209900)
+++ head/sys/x86/x86/timeevents.c	Sun Jul 11 17:08:37 2010	(r209901)
@@ -309,6 +309,8 @@ cpu_initclocks_bsp(void)
 	timer[0] = et_find(timername[0], ET_FLAGS_PERIODIC, ET_FLAGS_PERIODIC);
 	if (timer[0] == NULL)
 		timer[0] = et_find(NULL, ET_FLAGS_PERIODIC, ET_FLAGS_PERIODIC);
+	if (timer[0] == NULL)
+		panic("No usable event timer found!");
 	et_init(timer[0], timer1cb, NULL, NULL);
 	timer[1] = et_find(timername[1][0] ? timername[1] : NULL,
 	    ET_FLAGS_PERIODIC, ET_FLAGS_PERIODIC);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007111708.o6BH8bRe038162>