Mercurial > vordog
changeset 13:e4e6727f530f tip
To work with bootstrap code's configuration on the timer
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 09 Jul 2008 13:05:43 +0800 |
parents | 6bfd60bcd7b8 |
children | |
files | vordog.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)