freebsd-dev/sys/powerpc/booke
Jayachandran C. 07042bef45 Fix OF_finddevice error return value in case of FDT.
According to the open firmware standard, finddevice call has to return
a phandle with value of -1 in case of error.

This commit is to:
- Fix the FDT implementation of this interface (ofw_fdt_finddevice) to
  return (phandle_t)-1 in case of error, instead of 0 as it does now.
- Fix up the callers of OF_finddevice() to compare the return value with
  -1 instead of 0 to check for errors.
- Since phandle_t is unsigned, the return value of OF_finddevice should
  be checked with '== -1' rather than '<= 0' or '> 0', fix up these cases
  as well.

Reported by:	nwhitehorn

Reviewed by:	raj
Approved by:	raj, nwhitehorn
2011-12-02 15:24:39 +00:00
..
clock.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
copyinout.c Use the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64) 2011-06-23 22:21:28 +00:00
interrupt.c Use the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64) 2011-06-23 22:21:28 +00:00
locore.S It's invalid to use GLOBAL() for kernload_ap, as the macro switches 2011-08-02 23:33:44 +00:00
machdep.c Better support different kernel hand-offs. When loaded directly 2011-05-28 04:10:44 +00:00
mp_cpudep.c Add SMP support on U3-based G5 systems. This does not yet work perfectly: 2009-10-23 03:17:02 +00:00
platform_bare.c Fix OF_finddevice error return value in case of FDT. 2011-12-02 15:24:39 +00:00
pmap.c Remove locking of the vm page queues from several pmaps, which only 2011-09-28 15:01:20 +00:00
swtch.S MFppc64: 2010-07-13 05:32:19 +00:00
trap_subr.S Use local TLB_UNLOCKED marker instead of MTX_UNOWNED for Book-E PowerPC trap 2010-11-11 13:35:23 +00:00
trap.c Inline the syscallenter() and syscallret(). This reduces the time measured 2011-09-11 16:05:09 +00:00
vm_machdep.c For architectures not using direct map , and requiring real KVA page for 2011-01-18 21:57:02 +00:00