mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
amd64: Convert a cheap DIAGNOSTIC check to a KASSERT
MFC after: 1 week
This commit is contained in:
parent
8f26ed01bd
commit
f7c733e4fe
|
@ -1188,12 +1188,9 @@ amd64_syscall(struct thread *td, int traced)
|
|||
|
||||
kmsan_mark(td->td_frame, sizeof(*td->td_frame), KMSAN_STATE_INITED);
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (!TRAPF_USERMODE(td->td_frame)) {
|
||||
panic("syscall");
|
||||
/* NOT REACHED */
|
||||
}
|
||||
#endif
|
||||
KASSERT(TRAPF_USERMODE(td->td_frame),
|
||||
("%s: not from user mode", __func__));
|
||||
|
||||
syscallenter(td);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue