summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/mem.c b/cmd/mem.c
index a690957d0f..23eb02d759 100644
--- a/cmd/mem.c
+++ b/cmd/mem.c
@@ -870,6 +870,7 @@ static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr,
addr[test_offset] = pattern;
}
+#ifdef CONFIG_TDX_EASY_INSTALLER
/*
* Description: Test the integrity of a physical
* memory device by performing an
@@ -930,6 +931,7 @@ static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr,
}
addr[offset] = 0;
}
+#endif /* CONFIG_TDX_EASY_INSTALLER */
return errs;
}