]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PPC] Fix loader input with newer QEMU versions
authorluporl <luporl@FreeBSD.org>
Wed, 19 Jun 2019 11:37:43 +0000 (11:37 +0000)
committerluporl <luporl@FreeBSD.org>
Wed, 19 Jun 2019 11:37:43 +0000 (11:37 +0000)
commit5de94f46233fc7b817db9fe04620290d8abdc927
tree9fd0b96eec705fd7dc4026c50aaa0f8fd815b6b2
parent3b54f203e11710f95546ff1959343b00372a5d0b
[PPC] Fix loader input with newer QEMU versions

At least since version 4.0.0, QEMU became bug-compatible with PowerVM's
vty, by inserting a \0 after every \r. As this confuses loader's
interpreter and as a \0 coming from the console doesn't seem reasonable,
it's now being filtered at OFW console input.

Reviewed by: jhibbits
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20676
stand/ofw/libofw/ofw_console.c