Skip to content

Commit

Permalink
star64: Don't mask off high bits of serial output
Browse files Browse the repository at this point in the history
The UART device can print more than 7-bit ascii.

Signed-off-by: Jimmy Brush <[email protected]>
  • Loading branch information
canarysnort01 committed Aug 22, 2023
1 parent bfeda95 commit 9982c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libplatsupport/src/plat/star64/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int uart_putchar(ps_chardevice_t *d, int c)
while ((*REG_PTR(d->vaddr, UART_LSR) & UART_LSR_THRE) == 0);

/* Add character to the buffer. */
*REG_PTR(d->vaddr, UART_THR) = c & 0x7f;
*REG_PTR(d->vaddr, UART_THR) = c;

return c;
}
Expand Down

0 comments on commit 9982c34

Please sign in to comment.