Re: [Etherboot-developers] Allocating memory...
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Eric W B. <ebi...@ln...> - 2002-08-01 01:16:47
|
ke...@us... (Ken Yap) writes: > >void *allot(size_t size); > >void forget(void *ptr); > > Do you perhaps need a second argument to allot to be able to allocate in > different arenas, say under 1 MB, under 16 MB (for ISA DMA), and > anywhere else? Or maybe jsut the first and third categories. Ouch ISA DMA, I do need to do something to handle that. Possibly just not letting etherboot go above 16MB, with an ISA nic. I looked and it looks like we have at least one ISA Nic. I'm not at all certain what I want to do with allocating memory to do DMA to, despite the nice effect on the bss. I think I want a second set of functions that are relatives to pci_alloc_consistent. When we we seriously start porting etherboot, the DMA rules become much more interesting so I don't want to accidentally We do need to allocate a stack below 1MB. But that is all we need so a special one shot allocator will probably suffice. Eric |