From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 10 18:44:50 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBC1B106566B for ; Tue, 10 Jan 2012 18:44:50 +0000 (UTC) (envelope-from lyubomir@grigorovl.eu) Received: from gateway04.websitewelcome.com (gateway04.websitewelcome.com [67.18.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 806BA8FC08 for ; Tue, 10 Jan 2012 18:44:50 +0000 (UTC) Received: by gateway04.websitewelcome.com (Postfix, from userid 5007) id 66DDF83E946BB; Tue, 10 Jan 2012 12:44:49 -0600 (CST) Received: from gator1718.hostgator.com (gator1718.hostgator.com [184.173.215.146]) by gateway04.websitewelcome.com (Postfix) with ESMTP id 5C1BD83E9468D for ; Tue, 10 Jan 2012 12:44:49 -0600 (CST) Received: from [75.36.214.55] (port=63590 helo=neonz.localnet) by gator1718.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Rkggi-0001Wg-Gs for freebsd-ppc@freebsd.org; Tue, 10 Jan 2012 12:44:48 -0600 From: Lyubomir Grigorov To: freebsd-ppc@freebsd.org Date: Tue, 10 Jan 2012 10:44:42 -0800 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RC3; KDE/4.7.3; amd64; ; ) References: <201201050014.57718.lyubomir@grigorovl.eu> <201201092009.13252.lyubomir@grigorovl.eu> <20120110145443.66d18f78@atom.dino.sk> In-Reply-To: <20120110145443.66d18f78@atom.dino.sk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1537717.BvRG0JzOtT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201201101044.48009.lyubomir@grigorovl.eu> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator1718.hostgator.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - grigorovl.eu X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: adsl-75-36-214-55.dsl.pltn13.sbcglobal.net (neonz.localnet) [75.36.214.55]:63590 X-Source-Auth: lyubomir+grigorovl.eu X-Email-Count: 1 X-Source-Cap: YWxha2F6YW07YWxha2F6YW07Z2F0b3IxNzE4Lmhvc3RnYXRvci5jb20= Subject: Re: POWER3 / IBM 7028-6E1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 18:44:50 -0000 --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--