OpenCores
URL https://opencores.org/ocsvn/s6soc/s6soc/trunk

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [zipos/] [cmod.ld] - Blame information for rev 45

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 22 dgisselq
/*******************************************************************************
2
*
3
* Filename:     cmod.ld
4
*
5
* Project:      Cmod S6 ZipCPU demonstration
6
*
7
* Purpose:      This script provides a description of the Cmod S6 Zip CPU
8
*               build for the purposes of where to place memory when linking.
9
*
10
* Creator:      Dan Gisselquist, Ph.D.
11
*               Gisselquist Technology, LLC
12
*
13
********************************************************************************
14
*
15
* Copyright (C) 2016, Gisselquist Technology, LLC
16
*
17
* This program is free software (firmware): you can redistribute it and/or
18
* modify it under the terms of  the GNU General Public License as published
19
* by the Free Software Foundation, either version 3 of the License, or (at
20
* your option) any later version.
21
*
22
* This program is distributed in the hope that it will be useful, but WITHOUT
23
* ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
24
* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
25
* for more details.
26
*
27
* License:      GPL, v3, as defined and found on www.gnu.org,
28
*               http://www.gnu.org/licenses/gpl.html
29
*
30
*
31
*******************************************************************************/
32
 
33
ENTRY(_start)
34
 
35
MEMORY
36
{
37 45 dgisselq
        blkram (wx) : ORIGIN = 0x0004000, LENGTH = 0x0004000
38
        flash  (rx) : ORIGIN = 0x1000000, LENGTH = 0x1000000
39 22 dgisselq
}
40
 
41 45 dgisselq
_flash  = ORIGIN(flash);
42
_blkram = ORIGIN(blkram);
43
_sdram  = 0;
44
_top_of_stack = ORIGIN(blkram) + LENGTH(blkram) - 4;
45
_sdram_image_start = 0;
46
_sdram_image_end   = 0;
47 22 dgisselq
 
48
SECTIONS
49
{
50 45 dgisselq
        .rocode 0x1200000 : {
51
                _boot_address = .;
52
                *(.start) *(.boot)
53
                *(.text*)
54
                *(.rodata*)
55
                *(.strings*)
56
                } > flash
57
        _kernel_image_start = . ;
58
        .data : {
59
                *(.kernel*)
60
                *(.fixdata*)
61
                *(.data*)
62
                *(COMMON*)
63
                _kernel_image_end = . ;
64
                }> blkram AT> flash
65
        _blkram_image_end = . ;
66
        .bss : {
67
                *(.bss*)
68
                _bss_image_end = . ;
69
                } > blkram
70
        _top_of_heap = .;
71 22 dgisselq
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.