diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-09-13 07:29:03 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-09-13 07:29:03 +0000 |
commit | 0554593c5678f78240b776bee2589d2c6b1586ad (patch) | |
tree | dc3aab35a9c5fe0e945ab597c48b99c93c268adb /sys/arch/macppc/include | |
parent | 1f9e57cd526e4030b25022ba3755e535ca6691b2 (diff) |
Initialize the variable guarding the clock interrupt routine after
calling initclocks(). This prevents hardclock() from trying to
schedule a softclock interrupt before its cookie has been allocated,
leading to a panic.
While here grab the ticks/second value from the OpenFirmware at the
same time we read the clock frequency, no need to look twice for the
same node.
Looks ok to kettenis@
Diffstat (limited to 'sys/arch/macppc/include')
-rw-r--r-- | sys/arch/macppc/include/cpu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/macppc/include/cpu.h b/sys/arch/macppc/include/cpu.h index 0cd4ce37c54..586d91678f6 100644 --- a/sys/arch/macppc/include/cpu.h +++ b/sys/arch/macppc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.12 2013/03/17 15:10:33 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.13 2013/09/13 07:29:02 mpi Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -62,5 +62,7 @@ extern int ppc_altivec; extern void (*ppc64_slew_voltage)(u_int); +extern u_int32_t ticks_per_sec; + #endif /* _KERNEL */ #endif /* _MACHINE_CPU_H_ */ |