# HG changeset patch # User Thinker K.F. Li # Date 1215579943 -28800 # Node ID e4e6727f530f36f616dcc29902a30934fc3fa6f0 # Parent 6bfd60bcd7b819dbce2801bb03dce5a1d35e59ef To work with bootstrap code's configuration on the timer diff -r 6bfd60bcd7b8 -r e4e6727f530f vordog.c --- a/vordog.c Wed Jul 09 04:40:09 2008 +0800 +++ b/vordog.c Wed Jul 09 13:05:43 2008 +0800 @@ -262,8 +262,12 @@ static int vordog_probe(device_t dev) { int b; + disable_timer(); /* To work with bootstrap code + * that may configure the timer. */ + + outb(VD_INITVAL, 0xaa); b = inb(VD_INITVAL); - if(b != 0) + if(b != 0xaa) return EINVAL; b = inb(VD_CTR); if(b != 0)