source: trunk/boot/tsar_mips32/boot.ld

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

Fix several bugs to use the instruction MMU in kernel mode
in replacement of the instruction address extension register,
and remove the "kentry" segment.

This version is running on the tsar_generic_iob" platform.

One interesting bug: the cp0_ebase defining the kernel entry point
(for interrupts, exceptions and syscalls) must be initialized
early in kernel_init(), because the VFS initialisation done by
kernel_ini() uses RPCs, and RPCs uses Inter-Processor-Interrup.

File size: 696 bytes
Line 
1/*******************************************************************
2 * This is the linker script for the ALMOS-MKH boot-loader,
3 * to generate the 'boot.elf' file used for the TSAR architecture.
4 *******************************************************************/
5
6/* define the boot code base address */
7
8boot_code_base = 0x200000;
9
10/* Set the entry point of the boot-loader */
11/* (e_entry field in the "boot.elf" file header) */
12
13ENTRY(boot_entry)
14
15/* Describe how to group the sections */
16
17SECTIONS
18{
19    . = boot_code_base;
20    .code :
21    {
22        *(.text)
23        *(.rodata*)
24    }
25    . = ALIGN(0x1000);
26    .data :
27    {
28        *(.data*)
29        *(.bss)
30        *(.scommon)
31    }
32}
Note: See TracBrowser for help on using the repository browser.