lkml.org 
[lkml]   [2003]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PPC & 2.6.0-test3: wrong mem size & hang on ifconfig
> ===== arch/ppc/boot/prep/misc.c 1.14 vs edited =====
> --- 1.14/arch/ppc/boot/prep/misc.c Mon Oct 20 11:49:35 2003
> +++ edited/arch/ppc/boot/prep/misc.c Wed Dec 10 09:11:05 2003
> @@ -251,15 +251,21 @@
> {
> phandle dev_handle;
> int mem_info[2];
> + int n;
> + puts("Trying OF\n");
>
> /* get handle to memory description */
> if (!(dev_handle = finddevice("/memory@0")))
> break;
> + puts("Found /memory@0\n");
>
> /* get the info */
> if (getprop(dev_handle, "reg", mem_info,
> - sizeof(mem_info) != 8))
> + sizeof(mem_info) != 8)) {
> + puts("n = 0x");puthex(n);puts("\n");
> break;
> + }
> + puts("Found reg prop\n");

Are you sure that n really gets a value?

It prints
Found /memory@0
n = 0x00000000

and nothinf about reg prop as the code tells. What do you actually mean
by n?

--
Meelis Roos (mroos@linux.ee)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.065 / U:5.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site