mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-21 05:49:19 +08:00
c0776fa7ba
Collect all info about memory layout in one header file, so the mem layout is documented in one logical place and not in heap.cc arbitrarily. Use info from this file throughout. This is to prepare for ASLR support. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
14 lines
258 B
C++
14 lines
258 B
C++
#include "memory_layout.h"
|
|
|
|
class mmap_allocator
|
|
{
|
|
caddr_t mmap_current_low;
|
|
|
|
public:
|
|
mmap_allocator () : mmap_current_low ((caddr_t) MMAP_STORAGE_HIGH) {}
|
|
|
|
PVOID alloc (PVOID in_addr, SIZE_T in_size, bool fixed);
|
|
};
|
|
|
|
extern mmap_allocator mmap_alloc;
|