[158] | 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 | |
---|
| 8 | seg_kernel_code_base = 0x80000000; /* system code */ |
---|
| 9 | seg_kernel_data_base = 0x80010000; /* system cacheable data */ |
---|
| 10 | seg_kernel_uncdata_base = 0x80020000; /* system uncacheable data */ |
---|
[160] | 11 | seg_kernel_init_base = 0x80030000; /* system page table */ |
---|
[158] | 12 | |
---|
[160] | 13 | |
---|
| 14 | /* The peripherals base addresses are referenced by the software drivers and \ |
---|
[158] | 15 | must be defined, even if the peripherals are not used in the architecture */ |
---|
| 16 | |
---|
| 17 | seg_tty_base = 0x90000000; /* TTY device */ |
---|
| 18 | seg_timer_base = 0x91000000; /* Timer device */ |
---|
| 19 | seg_ioc_base = 0x92000000; /* Block device */ |
---|
| 20 | seg_dma_base = 0x93000000; /* DMA device */ |
---|
| 21 | seg_gcd_base = 0x95000000; /* GCD device */ |
---|
| 22 | seg_fb_base = 0x96000000; /* FrameBuffer device */ |
---|
| 23 | seg_icu_base = 0x9F000000; /* ICU device */ |
---|
| 24 | |
---|
[160] | 25 | /*****************************************/ |
---|
| 26 | seg_mapping_base = 0xBFC0C000; /* boot mapping_info */ |
---|
| 27 | |
---|
[158] | 28 | /* |
---|
| 29 | * Grouping sections into segments for system code and data |
---|
| 30 | */ |
---|
| 31 | |
---|
| 32 | SECTIONS |
---|
| 33 | { |
---|
| 34 | . = seg_kernel_code_base; |
---|
| 35 | seg_kernel_code : |
---|
| 36 | { |
---|
| 37 | *(.giet) |
---|
| 38 | *(.text) |
---|
| 39 | } |
---|
| 40 | . = seg_kernel_data_base; |
---|
| 41 | seg_kernel_data : |
---|
| 42 | { |
---|
| 43 | *(.rodata) |
---|
| 44 | /* . = ALIGN(4); */ |
---|
| 45 | *(.rodata.*) |
---|
| 46 | /* . = ALIGN(4); */ |
---|
| 47 | *(.data) |
---|
| 48 | /* . = ALIGN(4); */ |
---|
| 49 | *(.lit8) |
---|
| 50 | *(.lit4) |
---|
| 51 | *(.sdata) |
---|
| 52 | /* . = ALIGN(4); */ |
---|
| 53 | *(.bss) |
---|
| 54 | *(COMMON) |
---|
| 55 | *(.sbss) |
---|
| 56 | *(.scommon) |
---|
| 57 | } |
---|
| 58 | . = seg_kernel_uncdata_base; |
---|
| 59 | seg_kernel_uncdata : |
---|
| 60 | { |
---|
| 61 | *(.unckdata) |
---|
| 62 | } |
---|
[160] | 63 | |
---|
| 64 | . = seg_kernel_init_base; |
---|
| 65 | seg_kernel_init : |
---|
[158] | 66 | { |
---|
[160] | 67 | *(.kinitentry) |
---|
| 68 | *(.kinit) |
---|
[158] | 69 | } |
---|
| 70 | } |
---|
| 71 | |
---|