aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-11-09 10:59:02 +0100
committerSimon Glass <sjg@chromium.org>2019-12-10 05:54:55 -0700
commit5e5c785e34a18a12faedc93829e2a88ef22ade2a (patch)
treed7594af666833b2dc94d9b9ee0a8f283c4b693d9 /drivers
parent15ab77c2034e243f2a49b6908428779a800052df (diff)
downloadu-boot-5e5c785e34a18a12faedc93829e2a88ef22ade2a.zip
u-boot-5e5c785e34a18a12faedc93829e2a88ef22ade2a.tar.gz
u-boot-5e5c785e34a18a12faedc93829e2a88ef22ade2a.tar.bz2
serial: sandbox: support Unicode
Due to a conversion error the sandbox does not accept byte values 0x80-0xff from the keyboard. The UEFI extended text input unit test requires Unicode support. Use unsigned char for the serial buffer. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index 2f7bc24..1af5cc1 100644
--- a/drivers/serial/sandbox.c
+++ b/drivers/serial/sandbox.c
@@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR;
* serial_buf_write == serial_buf_read -> empty buffer
* (serial_buf_write + 1) % 16 == serial_buf_read -> full buffer
*/
-static char serial_buf[16];
+static unsigned char serial_buf[16];
static unsigned int serial_buf_write;
static unsigned int serial_buf_read;