Changeset 4f1475d4 in mainline for arch/amd64/_link.ld.in


Ignore:
Timestamp:
2005-09-04T19:43:15Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9e5422
Parents:
ee7e6ace
Message:

Added preprocessed linker script to AMD architecture, so that
the constants are all only in the header files.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • arch/amd64/_link.ld.in

    ree7e6ace r4f1475d4  
    99 */
    1010
     11#define __ASM__
     12#include <arch/boot/boot.h>
     13#include <arch/mm/page.h>
     14
    1115OUTPUT_FORMAT(binary)
    1216ENTRY(kernel_image_start)
    1317
    1418SECTIONS {
    15         .unmapped 0x8000: AT (0x8000) {
     19        .unmapped BOOTSTRAP_OFFSET: AT (BOOTSTRAP_OFFSET) {
    1620                unmapped_ktext_start = .;
    1721                *(K_TEXT_START);
     
    2428        }
    2529
    26         .mapped (0xffffffff80100000+0x8000+SIZEOF(.unmapped)) : AT (0x8000+SIZEOF(.unmapped)) {
     30        .mapped (PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)+SIZEOF(.unmapped)) : AT (BOOTSTRAP_OFFSET+SIZEOF(.unmapped)) {
    2731                ktext_start = .;
    2832                *(BOOT_DATA);
     
    6367
    6468
    65         e820table_boot = e820table - _map_address;
    66         e820counter_boot = e820counter - _map_address;
    67         real_bootstrap_gdtr = real_bootstrap_gdtr_boot + _ka2pa_offset;
     69        e820table_boot = KA2PA(e820table) - BOOT_OFFSET;
     70        e820counter_boot = KA2PA(e820counter) - BOOT_OFFSET;
     71        real_bootstrap_gdtr = PA2KA(real_bootstrap_gdtr_boot);
    6872}
Note: See TracChangeset for help on using the changeset viewer.