Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2009 13:07:07 GMT
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 171866 for review
Message-ID:  <200912171307.nBHD77ji089438@repoman.freebsd.org>

index | next in thread | raw e-mail

http://p4web.freebsd.org/chv.cgi?CH=171866

Change 171866 by raj@raj_fdt on 2009/12/17 13:06:48

	Provide in-place property modification routine.
	
	This is required for doing run-time fixups in the kernel.

Affected files ...

.. //depot/projects/fdt/sys/dev/ofw/ofw_fdt.c#3 edit

Differences ...

==== //depot/projects/fdt/sys/dev/ofw/ofw_fdt.c#3 (text+ko) ====

@@ -360,8 +360,13 @@
 ofw_fdt_setprop(ofw_t ofw, phandle_t package, const char *propname,
     const void *buf, size_t len)
 {
+	int offset;
 
-	return (-1);
+	offset = fdt_phandle_offset(package);
+	if (offset < 0)
+		return (-1);
+
+	return (fdt_setprop_inplace(fdtp, offset, propname, buf, len));
 }
 
 /* Convert a device specifier to a fully qualified pathname. */


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912171307.nBHD77ji089438>