diff options
author | mav <mav@FreeBSD.org> | 2010-07-11 17:08:37 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-07-11 17:08:37 +0000 |
commit | 5036d2a3734e67ef4d5575aaa5a7cc6f196cfe45 (patch) | |
tree | 75aa97bac861620023c72f031bb0ec128ba58cdd /sys/x86 | |
parent | d760bd51fb58638d7611c9053c1550331eba5322 (diff) | |
download | FreeBSD-src-5036d2a3734e67ef4d5575aaa5a7cc6f196cfe45.zip FreeBSD-src-5036d2a3734e67ef4d5575aaa5a7cc6f196cfe45.tar.gz |
Make kernel panic with reasonable message if no usable event timer found.
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/x86/timeevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/x86/timeevents.c b/sys/x86/x86/timeevents.c index d31af5d..d204cef 100644 --- a/sys/x86/x86/timeevents.c +++ b/sys/x86/x86/timeevents.c @@ -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); |