[rtems commit] bsps/x86_64: Reduce default RamSize to 1GiB
Joel Sherrill
joel at rtems.org
Mon Aug 13 22:49:30 UTC 2018
Module: rtems
Branch: master
Commit: 6eccd0c7e7b0e84e2ff6394b842addbb1b0be309
Changeset: http://git.rtems.org/rtems/commit/?id=6eccd0c7e7b0e84e2ff6394b842addbb1b0be309
Author: Amaan Cheval <amaan.cheval at gmail.com>
Date: Mon Aug 13 16:13:51 2018 +0530
bsps/x86_64: Reduce default RamSize to 1GiB
Simulators may not always be able to allocate 4GiB easily, and using an
artificially lower RAM may cause a broken heap.
Updates #2898.
---
bsps/x86_64/amd64/start/linkcmds | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bsps/x86_64/amd64/start/linkcmds b/bsps/x86_64/amd64/start/linkcmds
index 46b1ccb..ecb4a2b 100644
--- a/bsps/x86_64/amd64/start/linkcmds
+++ b/bsps/x86_64/amd64/start/linkcmds
@@ -23,15 +23,15 @@ HeapSize = DEFINED(HeapSize) ? HeapSize :
RamBase = DEFINED(RamBase) ? RamBase :
DEFINED(_RamBase) ? _RamBase : 0x0;
-/* XXX: Defaulting to 4GiB.
+/* XXX: Defaulting to 1GiB.
*/
RamSize = DEFINED(RamSize) ? RamSize :
- DEFINED(_RamSize) ? _RamSize : 0xFFFFFFFF;
+ DEFINED(_RamSize) ? _RamSize : 0x40000000;
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS;
+ PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x00100000)); . = SEGMENT_START("text-segment", 0x00100000) + SIZEOF_HEADERS;
.interp : { *(.interp) }
.note.gnu.build-id : { *(.note.gnu.build-id) }
.hash : { *(.hash) }
More information about the vc
mailing list