diff options
author | William Bryan <wilbryan@us.ibm.com> | 2015-11-11 11:56:52 -0600 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2015-11-17 13:03:42 -0600 |
commit | 8636a4c381119451f8e411b615922aa59d39ce9b (patch) | |
tree | 7c7a811fbd248ebdbf18b8b53e01f0039dfe188f /src/occ_405/linkocc.cmd | |
parent | 4db492e2bb390bf702a321aba25b085fd4c3807c (diff) | |
download | talos-occ-8636a4c381119451f8e411b615922aa59d39ce9b.tar.gz talos-occ-8636a4c381119451f8e411b615922aa59d39ce9b.zip |
Update linkscript and init sections
RTC: 134747
Change-Id: I3028b215f5560574e2ad5368f1a861bf46c61eb7
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21961
Reviewed-by: Wael Elessawy <welessa@us.ibm.com>
Tested-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/linkocc.cmd')
-rwxr-xr-x | src/occ_405/linkocc.cmd | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/src/occ_405/linkocc.cmd b/src/occ_405/linkocc.cmd index 457d53b..dcf8f47 100755 --- a/src/occ_405/linkocc.cmd +++ b/src/occ_405/linkocc.cmd @@ -580,10 +580,26 @@ SECTIONS _SSX_FREE_END = _FIR_HEAP_SECTION_BASE - 1; //////////////////////////////// + // Trace Buffers + //////////////////////////////// + __CUR_COUNTER__ = .; + _ERR_TRACE_BUFFER_BASE = 0xfffb4000; + _ERR_TRACE_BUFFER_SIZE = 0x2000; + _INF_TRACE_BUFFER_BASE = 0xfffb6000; + _INF_TRACE_BUFFER_SIZE = 0x2000; + _IMP_TRACE_BUFFER_BASE = 0xfffb8000; + _IMP_TRACE_BUFFER_SIZE = 0x2000; + . = _ERR_TRACE_BUFFER_BASE; + .err_trac . : {*(err_trac) . = ALIGN(_ERR_TRACE_BUFFER_SIZE);} > sram + .inf_trac . : {*(inf_trac) . = ALIGN(_INF_TRACE_BUFFER_SIZE);} > sram + .imp_trac . : {*(imp_trac) . = ALIGN(_IMP_TRACE_BUFFER_SIZE);} > sram + . = __CUR_COUNTER__; + + //////////////////////////////// // FIR data heap section //////////////////////////////// __CUR_COUNTER__ = .; - _FIR_HEAP_SECTION_BASE = 0xfffb9000; + _FIR_HEAP_SECTION_BASE = 0xfffba000; _FIR_HEAP_SECTION_SIZE = 0x3000; . = _FIR_HEAP_SECTION_BASE; .firHeap . : {*(firHeap) . = ALIGN(1024);} > sram @@ -593,7 +609,7 @@ SECTIONS // FIR data parms section //////////////////////////////// __CUR_COUNTER__ = .; - _FIR_PARMS_SECTION_BASE = 0xfffbc000; + _FIR_PARMS_SECTION_BASE = 0xfffbd000; _FIR_PARMS_SECTION_SIZE = 0x1000; . = _FIR_PARMS_SECTION_BASE; .firParms . : {*(firParms) . = ALIGN(1024);} > sram @@ -604,9 +620,9 @@ SECTIONS //////////////////////////////// __CUR_COUNTER__ = .; - _LINEAR_WR_WINDOW_SECTION_BASE = 0xfffbd000; + _LINEAR_WR_WINDOW_SECTION_BASE = 0xfffbe000; _LINEAR_WR_WINDOW_SECTION_SIZE = 0x1000; - _LINEAR_RD_WINDOW_SECTION_BASE = 0xfffbe000; + _LINEAR_RD_WINDOW_SECTION_BASE = 0xfffbf000; _LINEAR_RD_WINDOW_SECTION_SIZE = 0x1000; . = _LINEAR_WR_WINDOW_SECTION_BASE; .linear_wr . : {*(linear_wr) . = ALIGN(_LINEAR_WR_WINDOW_SECTION_SIZE);} > sram @@ -617,22 +633,19 @@ SECTIONS //////////////////////////////// // TEMP/TODO: Previously, we were able to reclaim this space // by loading applets over init data. The init data - // takes up much more than 4K, but as we stand now (pre-sensors) - // it should be fine. However, we either need to - // put these sections back into the normal area - // with the rest of the code or figure out what to - // do with it to regain the space. + // takes up around 6K. It would be good to figure + // out what to do with it to regain the space. //////////////////////////////// - __CUR_COUNTER__ = .; - INIT_SECTION_BASE = 0xfffbf000; - . = INIT_SECTION_BASE; + //__CUR_COUNTER__ = .; + //INIT_SECTION_BASE = 0xfffbf000; + //. = INIT_SECTION_BASE; // Section aligned to 128 to make occ main application image 128 bytes // aligned which is requirement for applet manager when traversing through // all the image headers - initSection . : { *(initSection) init_text . = ALIGN(128);} > sram + //initSection . : { *(initSection) init_text . = ALIGN(128);} > sram - . = __CUR_COUNTER__; + //. = __CUR_COUNTER__; ////////////////////////////// // End Of Memory |