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

Last change on this file since 465 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
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 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.