artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212125b
)
Change tb_freq to uint64_t. This prevents an overflow in the riscv64
author
kettenis
<kettenis@openbsd.org>
Mon, 21 Jun 2021 15:19:39 +0000
(15:19 +0000)
committer
kettenis
<kettenis@openbsd.org>
Mon, 21 Jun 2021 15:19:39 +0000
(15:19 +0000)
implementation of delay(9).
ok deraadt@
sys/arch/riscv64/riscv64/clock.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/clock.c
b/sys/arch/riscv64/riscv64/clock.c
index
9ee3bb7
..
02984bb
100644
(file)
--- a/
sys/arch/riscv64/riscv64/clock.c
+++ b/
sys/arch/riscv64/riscv64/clock.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: clock.c,v 1.
1 2021/05/04 16:38:06
kettenis Exp $ */
+/* $OpenBSD: clock.c,v 1.
2 2021/06/21 15:19:39
kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@
-28,7
+28,7
@@
#include <riscv64/dev/riscv_cpu_intc.h>
-extern uint
32
_t tb_freq; /* machdep.c */
+extern uint
64
_t tb_freq; /* machdep.c */
uint64_t tick_increment;
uint64_t statmin;