mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: Implement clflush_cache_range()
Required by drm-kmod 5.7 MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33289
This commit is contained in:
parent
9a79e08ae7
commit
db562aeff7
1 changed files with 7 additions and 0 deletions
|
|
@ -119,6 +119,13 @@ lkpi_clflushopt(unsigned long addr)
|
|||
}
|
||||
#define clflush(x) clflush((unsigned long)(x))
|
||||
#define clflushopt(x) lkpi_clflushopt((unsigned long)(x))
|
||||
|
||||
static inline void
|
||||
clflush_cache_range(void *addr, unsigned int size)
|
||||
{
|
||||
pmap_force_invalidate_cache_range((vm_offset_t)addr,
|
||||
(vm_offset_t)addr + size);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_PAGE_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue