artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3747865
)
Cast line_size to address width before using for alignment.
author
drahn
<drahn@openbsd.org>
Sat, 22 May 2021 17:07:28 +0000
(17:07 +0000)
committer
drahn
<drahn@openbsd.org>
Sat, 22 May 2021 17:07:28 +0000
(17:07 +0000)
ok kettenis@
sys/arch/riscv64/dev/sfcc.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/dev/sfcc.c
b/sys/arch/riscv64/dev/sfcc.c
index
b05401d
..
7b87447
100644
(file)
--- a/
sys/arch/riscv64/dev/sfcc.c
+++ b/
sys/arch/riscv64/dev/sfcc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sfcc.c,v 1.
1 2021/05/05 19:26:51 kettenis Exp $
*/
+/* $OpenBSD: sfcc.c,v 1.
2 2021/05/22 17:07:28 drahn Exp $
*/
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
*
@@
-98,7
+98,7
@@
sfcc_cache_wbinv_range(paddr_t pa, paddr_t len)
struct sfcc_softc *sc = sfcc_sc;
len += pa & (sc->sc_line_size - 1);
- pa &= ~(sc->sc_line_size - 1);
+ pa &= ~(
(paddr_t)
sc->sc_line_size - 1);
__asm volatile ("fence iorw,iorw" ::: "memory");
while (len > 0) {