From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Tue, 28 Aug 2012 10:11:07 +1000 Subject: [U-Boot] [PATCHv2 1/1] [RFC] DM: early_malloc for DM added. In-Reply-To: References: <1346069529-27397-1-git-send-email-tmshlvck@gmail.com> <1346071331-28989-1-git-send-email-tmshlvck@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tomas > static struct early_heap_header *def_early_brk(size_t bytes) > { > struct early_heap_header *h; > > if(gd->early_heap_first) > return NULL; > > /* The default implementation allocates all of the reserved space */ > bytes = CONFIG_SYS_EARLY_HEAP_SIZE; > gd->early_heap_first = bytes; Oops gd->early_heap_first = CONFIG_SYS_EARLY_HEAP_ADDR; Regards, Graeme