mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
riscv/addrenv: Test that satp contents make sense
Check that satp (the page directory root) is not 0, which means it has not been set.
This commit is contained in:
@@ -685,7 +685,7 @@ ssize_t up_addrenv_heapsize(const group_addrenv_t *addrenv)
|
|||||||
int up_addrenv_select(const group_addrenv_t *addrenv,
|
int up_addrenv_select(const group_addrenv_t *addrenv,
|
||||||
save_addrenv_t *oldenv)
|
save_addrenv_t *oldenv)
|
||||||
{
|
{
|
||||||
DEBUGASSERT(addrenv);
|
DEBUGASSERT(addrenv && addrenv->satp);
|
||||||
if (oldenv)
|
if (oldenv)
|
||||||
{
|
{
|
||||||
/* Save the old environment */
|
/* Save the old environment */
|
||||||
|
|||||||
Reference in New Issue
Block a user