From owner-freebsd-ppc@FreeBSD.ORG Mon Apr 20 05:12:07 2015 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2843D49E for ; Mon, 20 Apr 2015 05:12:07 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC7192E1 for ; Mon, 20 Apr 2015 05:12:06 +0000 (UTC) Received: by qcyk17 with SMTP id k17so52799951qcy.1 for ; Sun, 19 Apr 2015 22:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=enZAF0WDohYHt8QiRvSErmj1lkjX8EpNoj58om6Rx7c=; b=RoTvBv5tNMIj7KzHsonpQ1yk0A/Ac63dWJz+hRW1/sznH8I2L0dEDXhGUFcesWwQlp TAt35J2992TS27z3fiByu2HM4FFJ4Aq80azFYpgUIfhaUpmvDnllPPBQdVndT8YyT85a O0dANDmVBUcA4IFsmthCAUcdCb9JgVnjaOm+dMwMYp0lpuf67NNlaQs27cmcSyZTafa1 XyOUKMR9Ne2V9tj710AY8DXHt0I9oolTcn/jbL5mRecoMs3vVIkDBRoeSV9LIdH62DZV 5VkgFBnRcTmUZVAx9oqBsnXUAClsDxe88B1EJbiSpLwxFuMUcM5ik2g9yXP6583uUtYq 87TA== MIME-Version: 1.0 X-Received: by 10.140.232.144 with SMTP id d138mr13718332qhc.65.1429506726030; Sun, 19 Apr 2015 22:12:06 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.140.84.179 with HTTP; Sun, 19 Apr 2015 22:12:05 -0700 (PDT) Date: Sun, 19 Apr 2015 22:12:05 -0700 X-Google-Sender-Auth: G8j2XMDJ0wtuz4pBb0E6YEpN_qA Message-ID: Subject: Clearing sbss/bss at bootup From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2015 05:12:07 -0000 Been looking at bootup issues on the e500, and many of the issues I see are caused by static variables not being initialized to 0 early enough. The code doesn't bzero() the bss/sbss until pretty late in bootup. Is there a reason why that is? Why can't the bss be cleared immediately? Do loaders pass in data at addresses that may overlap the bss? - Justin