Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2015 22:12:05 -0700
From:      Justin Hibbits <jrh29@alumni.cwru.edu>
To:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Clearing sbss/bss at bootup
Message-ID:  <CAHSQbTBkD4ddpq4SDM_-jpqE2f505bgJ7F9-Vkr9O58NEL0jbQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



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