j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: 2007-08-11 09:45:33 +0200 (Sat, 11 Aug 2007) New Revision: 169
Modified: openbios-devel/arch/sparc32/romvec.c Log: Fix NetBSD property problems
Modified: openbios-devel/arch/sparc32/romvec.c =================================================================== --- openbios-devel/arch/sparc32/romvec.c 2007-08-05 18:01:20 UTC (rev 168) +++ openbios-devel/arch/sparc32/romvec.c 2007-08-11 07:45:33 UTC (rev 169) @@ -86,6 +86,11 @@ { int notfound;
+ if (!node) { + DPRINTF("obp_proplen(0x0, %s) = -1\n", name); + return -1; + } + push_str(name); PUSH(node); fword("get-package-property"); @@ -127,6 +132,11 @@ int len; char *str;
+ if (!node) { + DPRINTF("obp_getprop(0x0, %s) = -1\n", name); + return -1; + } + if (!name) { // NULL name means get first property push_str("");