mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 05:13:03 +08:00
Add INVARIANTS support
This commit is contained in:
@@ -235,8 +235,10 @@ uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault)
|
||||
|
||||
KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
|
||||
("uiomove: mode"));
|
||||
#ifndef __rtems__
|
||||
KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == td,
|
||||
("uiomove proc"));
|
||||
#endif /* __rtems__ */
|
||||
if (!nofault)
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
|
||||
"Calling uiomove()");
|
||||
|
Reference in New Issue
Block a user