summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vboot/callbacks/display.c9
-rw-r--r--src/vboot/callbacks/headless_stub.c7
2 files changed, 16 insertions, 0 deletions
diff --git a/src/vboot/callbacks/display.c b/src/vboot/callbacks/display.c
index bae8043..d19696d 100644
--- a/src/vboot/callbacks/display.c
+++ b/src/vboot/callbacks/display.c
@@ -135,6 +135,15 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y,
return VBERROR_SUCCESS;
}
+VbError_t VbExDisplayText(uint32_t x, uint32_t y,
+ const char *info_str)
+{
+ video_console_set_cursor(x, y);
+ print_string(info_str);
+
+ return VBERROR_SUCCESS;
+}
+
VbError_t VbExDisplaySetDimension(uint32_t width, uint32_t height)
{
// TODO(hungte) Shift or scale images if width/height is not equal to
diff --git a/src/vboot/callbacks/headless_stub.c b/src/vboot/callbacks/headless_stub.c
index 93571b6..7b5da05 100644
--- a/src/vboot/callbacks/headless_stub.c
+++ b/src/vboot/callbacks/headless_stub.c
@@ -44,6 +44,13 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y,
return VBERROR_SUCCESS;
}
+VbError_t VbExDisplayText(uint32_t x, uint32_t y,
+ const char *info_str)
+{
+ printf("%s:%d invoked\n", __func__, __LINE__);
+ return VBERROR_SUCCESS;
+}
+
VbError_t VbExDisplaySetDimension(uint32_t width, uint32_t height)
{
printf("%s:%d invoked\n", __func__, __LINE__);