source: soft/giet_vm/sys/sys.ld @ 165

Last change on this file since 165 was 165, checked in by alain, 12 years ago

Introducing various modifications in kernel initialisation

File size: 1.9 KB
Line 
1/****************************************************************************
2* Definition of the base address for all virtual segments
3*****************************************************************************/
4
5/* The vsegs used by the system are replicated in all virtual spaces
6   They can be identity mapping... or not */
7
8seg_kernel_code_base    = 0x80000000;   /* system code */
9seg_kernel_data_base    = 0x80010000;   /* system cacheable data */
10seg_kernel_uncdata_base = 0x80020000;   /* system uncacheable data */
11seg_kernel_init_base    = 0x80030000;   /* system page table */
12seg_mapping_base            = 0xBFC0C000;       /* boot mapping_info */
13
14
15/* The peripherals base addresses are referenced by the software drivers and    \
16   must be defined, even if the peripherals are not used in the architecture */
17
18seg_tty_base            = 0x90000000;   /* TTY device */
19seg_timer_base          = 0x91000000;   /* Timer device */
20seg_ioc_base            = 0x92000000;   /* Block device */
21seg_dma_base            = 0x93000000;   /* DMA device */
22seg_gcd_base            = 0x95000000;   /* GCD device */
23seg_fb_base             = 0x96000000;   /* FrameBuffer device */
24seg_icu_base            = 0x9F000000;   /* ICU device */
25
26/*
27 * Grouping sections into segments for system code and data
28 */
29
30SECTIONS
31{
32    . = seg_kernel_code_base;
33    seg_kernel_code :
34    {
35        *(.giet)
36        *(.text)
37    }
38    . = seg_kernel_data_base;
39    seg_kernel_data :
40    {
41        *(.rodata)
42        /* . = ALIGN(4); */
43        *(.rodata.*)
44        /* . = ALIGN(4); */
45        *(.data)
46        /* . = ALIGN(4); */
47        *(.lit8)
48        *(.lit4)
49        *(.sdata)
50        /* . = ALIGN(4); */
51        *(.bss)
52        *(COMMON)
53        *(.sbss)
54        *(.scommon)
55    }
56    . = seg_kernel_uncdata_base;
57    seg_kernel_uncdata :
58    {
59        *(.unckdata)
60    }
61
62    . = seg_kernel_init_base;
63    seg_kernel_init :
64    {
65        *(.kinit)
66    }
67}
68
Note: See TracBrowser for help on using the repository browser.