Patch hosted memory allocation. some systems will not allow AROS to allocate > 1024MB...
[AROS.git] / arch / all-hosted / bootstrap / memory.c
blob96006cf13b44f98eec2c21cf45755fb0edcca6e9
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdlib.h>
8 /*
9 * Allocate memory for kickstart's .code and .rodata.
10 * At this point it needs to be writable because we will load
11 * kickstart files into it afterwards.
13 void *AllocateRO(size_t len)
15 return malloc(len);
19 * Commit executable and read-only state for kickstart's .code
21 int SetRO(void *addr, size_t len)
23 /* 0 means success */
24 return 0;
28 * Allocate simple read-write memory for kickstart's .data and .bss.
30 void *AllocateRW(size_t len)
32 return malloc(len);
36 * Allocate read-write-execute area to be used as AROS RAM
38 void *AllocateRAM32(size_t len)
40 return malloc(len);
44 * Allocate read-write-execute area to be used as AROS RAM
46 void *AllocateRAM(size_t len)
48 return malloc(len);