Author: mcayland Date: Fri Feb 7 19:12:30 2014 New Revision: 1258 URL: http://tracker.coreboot.org/trac/openbios/changeset/1258
Log: escc: fix keyboard property for SPARC32
The keyboard property should be empty.
NetBSD accesses the keyboard property in 'kernel/arch/sparc/dev/zs.c' and checks this : (prom_getproplen(zsc->zsc_node, "keyboard") == 0)
...which is true only when the property exists but has no value. It matches Sun's OpenBOOT behavior.
Signed-off-by: Olivier Danet odanet@caramail.com Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/drivers/escc.c
Modified: trunk/openbios-devel/drivers/escc.c ============================================================================== --- trunk/openbios-devel/drivers/escc.c Mon Jan 13 10:47:06 2014 (r1257) +++ trunk/openbios-devel/drivers/escc.c Fri Feb 7 19:12:30 2014 (r1258) @@ -329,13 +329,13 @@ fword("property");
if (keyboard) { - PUSH(-1); - fword("encode-int"); + PUSH(0); + PUSH(0); push_str("keyboard"); fword("property");
- PUSH(-1); - fword("encode-int"); + PUSH(0); + PUSH(0); push_str("mouse"); fword("property"); }