[OpenBIOS] [PATCH] Keyboard property

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Wed Feb 5 00:27:56 CET 2014


On 01/02/14 20:52, Olivier Danet wrote:

> 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 at caramail.com>
> ===================================================================
> --- drivers/escc.c (révision 1257)
> +++ drivers/escc.c (copie de travail)
> @@ -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");
> }
> ===================================================================

Reviewed-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>


ATB,

Mark.



More information about the OpenBIOS mailing list