Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 10:44:42 -0800
From:      Lyubomir Grigorov <lyubomir@grigorovl.eu>
To:        freebsd-ppc@freebsd.org
Subject:   Re: POWER3 / IBM 7028-6E1
Message-ID:  <201201101044.48009.lyubomir@grigorovl.eu>
In-Reply-To: <20120110145443.66d18f78@atom.dino.sk>
References:  <201201050014.57718.lyubomir@grigorovl.eu> <201201092009.13252.lyubomir@grigorovl.eu> <20120110145443.66d18f78@atom.dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1537717.BvRG0JzOtT
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

> There could be even some memory problem, but this is just a wild uneducat=
ed=20
> guess.
I localized the problem to the following source below. From this point I ca=
n't=20
do anything else. If I can provide some help, I will gladly do so.

sys/boot/ofw/common/main.c
=2E..
=2E..
48 #define HEAP_SIZE       0x80000
=2E..
52 void
53 init_heap(void)
54 {
55         void    *base;
56         ihandle_t stdout;
57=20
58         if ((base =3D ofw_alloc_heap(HEAP_SIZE)) =3D=3D (void *)0xffffff=
ff) {
59                 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
60                 OF_puts(stdout, "Heap memory claim failed!\n");
61                 OF_enter();
62         }
63=20
64         setheap(base, (void *)((int)base + HEAP_SIZE));
65 }
=2E..
=2E..

sys/boot/ofw/libofw/ofw_memory.c
=2E..
=2E..
119 ofw_alloc_heap(unsigned int size)
120 {
121         phandle_t       memoryp, root;
122         cell_t          available[4];
123         cell_t          acells;
124=20
125         root =3D OF_finddevice("/");
126         acells =3D 1;
127         OF_getprop(root, "#address-cells", &acells, sizeof(acells));
128=20
129         memoryp =3D OF_instance_to_package(memory);
130         OF_getprop(memoryp, "available", available, sizeof(available));
131=20
132         heap_base =3D OF_claim((void *)available[acells-1], size,
133             sizeof(register_t));
134=20
135         if (heap_base !=3D (void *)-1) {
136                 heap_size =3D size;
137         }
138=20
139         return (heap_base);
140 }
=2E..
=2E..

=2D-
Lyubomir Grigorov (bgalakazam)

--nextPart1537717.BvRG0JzOtT
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQIcBAABAgAGBQJPDIcfAAoJEDmxOw4kunU9VQAP+QGjEAUXWoJqGMu6cVqBSDR/
+fhxNxeH0ET1hfyYmV2qEx1OF2XNCJEx6EYakmQo4GLzW1oXLQSOLZImJ9N/WRJc
LppYmf42I2z+YISXGXmZYcZ5MAF3o3g3S1XHtxWHk9dh8jW4C+X2YegMfb5MsDSu
icPjCUObCZVwBfb98fBaT9zwxwHf/tAJVlEhRcSOjpncdc2HprveBiVMYcGlNhSn
RlugpLmvrxzRFJW8+nBQreE2wrunizPvdRr/F+e/Nd5B4xjT7iJwMkLf1Aocymhf
nQlOAHKuyYdCpJZaEBr3/VCGNo1TW9gGtQkZTJoxpDficknXDA2HDg2Xk11St7Fl
1qKOdGjX/2tC3I7TcOWEkmQa6YnG9fcjqyXKG8FZCqHZSq5rAyr3vNAaecI7tGoF
rR+B1u2gMub7SgZzMmhHBNc0mihjALdIXhW6pUBUKnTOIR/Bm4Lt+Z6O04l0bqgN
3WeaugYh3XVjT2CyDqE4fbsUmEdLJ3E2U1837JjUdsVo6R/l0QFes7HKhHFZuzHX
eaktTquNK5Sk+ooPetwSnKIQSAI06MY6WaCRWlaYmCvzY1ACgdRQg9Y2L1XVavAH
xHYSFKqAxWFTfHNduRtAj7gIEjtUbK+qwY1yiGxNmiO21CC+27Rwp4LPEI9+jNy7
RbEDqlGLKkQAAVKQdr2G
=947A
-----END PGP SIGNATURE-----

--nextPart1537717.BvRG0JzOtT--



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