[OpenBIOS] [PATCH] Keyboard property

Olivier Danet odanet at caramail.com
Sat Feb 1 21:52:25 CET 2014


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");
      }
===================================================================




More information about the OpenBIOS mailing list