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