Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F95499360
D45226.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
610 B
Referenced Files
None
Subscribers
None
D45226.diff
View Options
diff --git a/sys/riscv/riscv/timer.c b/sys/riscv/riscv/timer.c
--- a/sys/riscv/riscv/timer.c
+++ b/sys/riscv/riscv/timer.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com>
+ * Copyright (c) 2015-2024 Ruslan Bukin <br@bsdpad.com>
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -143,7 +143,10 @@
sc = (struct riscv_timer_softc *)arg;
- csr_clear(sip, SIP_STIP);
+ if (has_sstc)
+ csr_write(stimecmp, -1UL);
+ else
+ csr_clear(sip, SIP_STIP);
if (sc->et.et_active)
sc->et.et_event_cb(&sc->et, sc->et.et_arg);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 22, 5:11 AM (1 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12387881
Default Alt Text
D45226.diff (610 B)
Attached To
Mode
D45226: Fix SSTC extension support
Attached
Detach File
Event Timeline
Log In to Comment