Reset and disable watchdog explicitly in crime_attach().
This commit is contained in:
parent
4700123ef3
commit
a36263cd7a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crime.c,v 1.21 2005/10/18 11:31:12 tsutsui Exp $ */
|
||||
/* $NetBSD: crime.c,v 1.22 2005/12/10 07:00:40 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Christopher SEKIYA
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: crime.c,v 1.21 2005/10/18 11:31:12 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: crime.c,v 1.22 2005/12/10 07:00:40 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -140,6 +140,9 @@ crime_attach(struct device *parent, struct device *self, void *aux)
|
||||
/* reset CRIME CPU & memory error registers */
|
||||
crime_bus_reset();
|
||||
|
||||
bus_space_write_8(crm_iot, crm_ioh, CRIME_WATCHDOG, 0);
|
||||
bus_space_write_8(crm_iot, crm_ioh, CRIME_CONTROL, 0);
|
||||
|
||||
baseline = bus_space_read_8(crm_iot, crm_ioh, CRIME_TIME) & CRIME_TIME_MASK;
|
||||
cps = mips3_cp0_count_read();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user