source: trunk/hal/tsar_mips32/kernel.ld @ 623

Last change on this file since 623 was 623, checked in by alain, 3 years ago

Introduce three new types of vsegs (KCODE,KDATA,KDEV)
to map the kernel vsegs in the process VSL and GPT.
This now used by both the TSAR and the I86 architectures.

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 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 addresses */
11
12seg_kcode_base  = 0x00008000;
13seg_kentry_base = 0x00004000;
14
15/* Set the entry point (e_entry field in the "kernel.elf" file header) */
16
17ENTRY(kernel_init)
18
19/* Describe how to group the sections */
20
21SECTIONS
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                *(.switch)
45    }
46}
Note: See TracBrowser for help on using the repository browser.