summaryrefslogtreecommitdiff
path: root/cesar/ecos
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/ecos')
-rw-r--r--cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.h5
-rw-r--r--cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.ldi7
2 files changed, 12 insertions, 0 deletions
diff --git a/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.h b/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.h
index a50ee7922e..5eaa075558 100644
--- a/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.h
+++ b/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.h
@@ -25,4 +25,9 @@ extern char CYG_LABEL_NAME (__heap1) [];
#define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1))
#define CYGMEM_SECTION_heap1_SIZE (0x04000000 - (size_t) CYG_LABEL_NAME (__heap1))
+#ifndef __ASSEMBLER__
+extern char *CYG_LABEL_NAME (__bin_eof);
+#endif
+#define CYGMEM_LABEL_bin_eof (CYG_LABEL_NAME (__bin_eof))
+
#define CYGHWR_HAL_SPARC_MULTIPLE_VECTOR_TRAPPING
diff --git a/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.ldi b/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.ldi
index e3b60fc6b8..7245ca3cdb 100644
--- a/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.ldi
+++ b/cesar/ecos/packages/hal/sparc/leon/current/include/pkgconf/mlt_sparc_leon_ram.ldi
@@ -28,10 +28,17 @@ SECTIONS
SECTION_ilram (tclri, , FOLLOWING (.dlram_data))
CYG_LABEL_DEFN(__dlram_data_source) = LOADADDR (.dlram_data);
CYG_LABEL_DEFN(__ilram_source) = LOADADDR (.ilram);
+
+ // The end of the binary file.
+ CYG_LABEL_DEFN(__bin_eof) = ADDR (.bss) + SIZEOF (.dlram_data)
+ + SIZEOF (.ilram);
. = ADDR (.bss)
+ MAX (SIZEOF (.bss), SIZEOF (.dlram_data) + SIZEOF (.ilram));
#else
SECTION_interrupt_stack (ram, ALIGN (8) (NOLOAD), LMA_EQ_VMA)
+
+ // The end of the binary file.
+ CYG_LABEL_DEFN(__bin_eof) = ADDR (.bss);
#endif
CYG_LABEL_DEFN(__heap1) = ALIGN (8);
SECTIONS_END