tools: specify parameter size limits for LPC
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic7049ffc2a3c4e7dad3356e11f48f6e5ed8eeca1
diff --git a/tools/lpc.cpp b/tools/lpc.cpp
index 7a5faa2..3d6bc4b 100644
--- a/tools/lpc.cpp
+++ b/tools/lpc.cpp
@@ -28,8 +28,8 @@
LpcRegion host_lpc_buf;
/* TODO: Remove hard-coded configuration used with test machine. */
- host_lpc_buf.address = 0xfedc1000;
- host_lpc_buf.length = 0x1000;
+ host_lpc_buf.address = address;
+ host_lpc_buf.length = length;
std::vector<std::uint8_t> payload(sizeof(host_lpc_buf));
std::memcpy(payload.data(), &host_lpc_buf, sizeof(host_lpc_buf));