riscv: add an assert to pmap_remove_pages()
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 25 Aug 2022 20:08:20 +0000 (17:08 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 6 Oct 2022 22:04:41 +0000 (19:04 -0300)
commit99fe523778af8cd0db3a17b253adb77a980176be
treeb6bd1f28cc90d2552eb4a5bdec60b56033c112cd
parent9d1aef84021f4e99d37f4e9149a8799c3d9e5e03
riscv: add an assert to pmap_remove_pages()

Similar checks exist for both arm64 and amd64, but note that for amd64
it is a bare panic().

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36564
sys/riscv/riscv/pmap.c