mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
Implement local sfbuf_map and sfbuf_unmap for MIPS32.
The pre-rework behaviour was not to keep the cached mappings around after the sfbuf was used but instead to recycle said mappings. PR: kern/193400
This commit is contained in:
parent
24110da033
commit
89a4f450d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271213
@ -48,4 +48,23 @@ sf_buf_page(struct sf_buf *sf)
|
||||
}
|
||||
|
||||
#endif /* __mips_n64 */
|
||||
|
||||
#ifndef __mips_n64 /* in 32 bit mode we manage our own mappings */
|
||||
|
||||
static inline void
|
||||
sf_buf_map(struct sf_buf *sf, int flags)
|
||||
{
|
||||
|
||||
pmap_qenter(sf->kva, &sf->m, 1);
|
||||
}
|
||||
|
||||
static inline int
|
||||
sf_buf_unmap(struct sf_buf *sf)
|
||||
{
|
||||
pmap_qremove(sf->kva, 1);
|
||||
return (1);
|
||||
}
|
||||
|
||||
#endif /* ! __mips_n64 */
|
||||
|
||||
#endif /* !_MACHINE_SF_BUF_H_ */
|
||||
|
@ -189,6 +189,7 @@
|
||||
|
||||
#ifndef __mips_n64
|
||||
#define SFBUF
|
||||
#define SFBUF_MAP
|
||||
#endif
|
||||
|
||||
#endif /* !_MACHINE_VMPARAM_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user