Last change
on this file since 514 was
406,
checked in by alain, 7 years ago
|
This version executed successfully the user "init" process on a mono-processor TSAR architecture.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[296] | 1 | /*************************************************************************************** |
---|
| 2 | * This is the linker script for the ALMOS-MKH kernel code on the TSAR architecture. |
---|
| 3 | * It describes the memory layout for the "kernel.elf" binary file, containing three |
---|
| 4 | * loadable segments, that MUST be identity mapped for the TSAR architecture. |
---|
| 5 | * |
---|
| 6 | * WARNING the seg_kentry_base and seg_kcode_base defined below must be kept coherent |
---|
| 7 | * with the values defined in the boot_config.h file used by the TSAR bootloader. |
---|
| 8 | **************************************************************************************/ |
---|
[63] | 9 | |
---|
[406] | 10 | /* Define the kernel code base addresses */ |
---|
[63] | 11 | |
---|
[296] | 12 | seg_kcode_base = 0x00008000; |
---|
| 13 | seg_kentry_base = 0x00004000; |
---|
[63] | 14 | |
---|
[279] | 15 | /* Set the entry point (e_entry field in the "kernel.elf" file header) */ |
---|
| 16 | |
---|
[63] | 17 | ENTRY(kernel_init) |
---|
| 18 | |
---|
[279] | 19 | /* Describe how to group the sections */ |
---|
| 20 | |
---|
[63] | 21 | SECTIONS |
---|
| 22 | { |
---|
[279] | 23 | . = seg_kcode_base; |
---|
[63] | 24 | seg_kcode : |
---|
| 25 | { |
---|
| 26 | *(.text) |
---|
| 27 | *(.rodata*) |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | . = ALIGN(0x1000); |
---|
| 31 | |
---|
| 32 | seg_kdata : |
---|
| 33 | { |
---|
| 34 | *(.kinfo) |
---|
| 35 | *(.kidle) |
---|
| 36 | *(.kdata*) |
---|
| 37 | *(.data*) |
---|
| 38 | } |
---|
[279] | 39 | |
---|
[296] | 40 | . = seg_kentry_base; |
---|
| 41 | seg_kentry : |
---|
[279] | 42 | { |
---|
[296] | 43 | *(.kentry) |
---|
[406] | 44 | *(.switch) |
---|
[279] | 45 | } |
---|
[63] | 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.