Last change
on this file since 354 was
296,
checked in by alain, 7 years ago
|
Several modifs in the generic scheduler and in the hal_context to
fix the context switch mechanism.
|
File size:
1.1 KB
|
Line | |
---|
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 | **************************************************************************************/ |
---|
9 | |
---|
10 | /* Define the kernel code base address */ |
---|
11 | |
---|
12 | seg_kcode_base = 0x00008000; |
---|
13 | seg_kentry_base = 0x00004000; |
---|
14 | |
---|
15 | /* Set the entry point (e_entry field in the "kernel.elf" file header) */ |
---|
16 | |
---|
17 | ENTRY(kernel_init) |
---|
18 | |
---|
19 | /* Describe how to group the sections */ |
---|
20 | |
---|
21 | SECTIONS |
---|
22 | { |
---|
23 | . = seg_kcode_base; |
---|
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 | } |
---|
39 | |
---|
40 | . = seg_kentry_base; |
---|
41 | seg_kentry : |
---|
42 | { |
---|
43 | *(.kentry) |
---|
44 | } |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.