Changeset 8262010 in mainline for arch/ia32/_link.ld


Ignore:
Timestamp:
2005-04-10T16:36:45Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23c0c08
Parents:
43114c5
Message:

Switch from mm-based 'the' mechanism to macro-based 'cpu_private_data[CPU_ID_ARCH]' mechanism.
Added l_apic_id() and some other minor APIC changes.
Move gdtr to K_DATA_START section.
Move K_DATA_START section immediately behind K_TEXT_START section so that real-mode addresses work even with growing size of kernel code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/_link.ld

    r43114c5 r8262010  
    1414        ktext_start = .;
    1515        *(K_TEXT_START);
     16        delta_start = .;
     17        *(K_DATA_START);
     18        delta_end = .;                 
    1619        *(.text);
    1720        ktext_end = .;
    1821
    1922        kdata_start = .;
    20         *(K_DATA_START);
    2123        *(.data);               /* initialized data */
    2224        *(.rodata*);            /* string literals */
     
    2931    . = ABSOLUTE(hardcoded_ktext_size);
    3032    .patch_1 : {
    31         LONG(ktext_end - ktext_start);
     33        LONG(ktext_end - ktext_start - (delta_end - delta_start));
    3234    }
    3335
    3436    . = ABSOLUTE(hardcoded_kdata_size);
    3537    .patch_2 : {
    36         LONG(kdata_end - kdata_start);
     38        LONG(kdata_end - kdata_start + (delta_end - delta_start));
    3739    }
    3840
Note: See TracChangeset for help on using the changeset viewer.