source: mainline/arch/ia32/_link.ld@ 1eb0dd13

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 1eb0dd13 was d47f0e1, checked in by Jakub Jermar <jakub@…>, 20 years ago

SMP recovery patch #1. (SMP still broken)
Move ap_boot() to K_TEXT_START_2 section.
Change ap_boot() to cope with mapping of kernel address space.
Change some addresses in mps.c from kernel to physical.

MIPS.
Move msim dprinter device to 0xB0000000.
This address is from kseg1 (unmapped, uncached) segment.

  • Property mode set to 100644
File size: 982 bytes
RevLine 
[da585a52]1/** IA-32 linker script
[f761f1eb]2 *
[dcbc8be]3 * umapped section:
4 * kernel text
5 * kernel data
6 * mapped section:
7 * kernel text
8 * kernel data
[f761f1eb]9 */
10
11OUTPUT_FORMAT(binary)
12ENTRY(kernel_image_start)
13
14SECTIONS {
[ac5d02b]15 .unmapped 0x8000: AT (0x8000) {
16 unmapped_ktext_start = .;
17 *(K_TEXT_START);
[d47f0e1]18 *(K_TEXT_START_2);
[ac5d02b]19 unmapped_ktext_end = .;
20 unmapped_kdata_start = .;
21 *(K_DATA_START);
22 unmapped_kdata_end = .;
23 }
[f761f1eb]24
[ac5d02b]25 .mapped (0x80000000+SIZEOF(.unmapped)+0x8000) : AT (0x8000+SIZEOF(.unmapped)) {
26 ktext_start = .;
27 *(.text);
28 ktext_end = .;
[f761f1eb]29
[ac5d02b]30 kdata_start = .;
31 *(.data); /* initialized data */
32 *(.rodata*); /* string literals */
33 *(COMMON); /* global variables */
34 *(.bss); /* uninitialized static variables */
35 *(K_DATA_END);
36 kdata_end = .;
37 }
38
39 _hardcoded_ktext_size = ktext_end - ktext_start + (unmapped_ktext_end - unmapped_ktext_start);
40 _hardcoded_kdata_size = kdata_end - kdata_start + (unmapped_kdata_end - unmapped_kdata_start);
41 _hardcoded_load_address = 0x80008000;
[f761f1eb]42
43}
Note: See TracBrowser for help on using the repository browser.