svn commit: r258806 - head/sys/dev/uart
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Sun Dec 1 19:05:33 UTC 2013
Author: nwhitehorn
Date: Sun Dec 1 19:05:32 2013
New Revision: 258806
URL: http://svnweb.freebsd.org/changeset/base/258806
Log:
Real OF systems have an ihandle under /chosen/stdout, not a phandle. Use
the right type.
Modified:
head/sys/dev/uart/uart_cpu_powerpc.c
Modified: head/sys/dev/uart/uart_cpu_powerpc.c
==============================================================================
--- head/sys/dev/uart/uart_cpu_powerpc.c Sun Dec 1 19:03:20 2013 (r258805)
+++ head/sys/dev/uart/uart_cpu_powerpc.c Sun Dec 1 19:05:32 2013 (r258806)
@@ -89,13 +89,13 @@ ofw_get_console_phandle_path(phandle_t n
return (ENXIO);
OF_getprop(node, prop, &field, sizeof(field));
- /* This property might be a phandle or might be a path. Hooray. */
+ /* This property might be either a ihandle or path. Hooray. */
output = -1;
if (field.buf[size - 1] == 0)
output = OF_finddevice(field.buf);
if (output == -1 && size == 4)
- output = OF_xref_phandle(field.ref);
+ output = OF_instance_to_package(field.ref);
if (output != -1) {
*result = output;
More information about the svn-src-head
mailing list