Changeset ac5d02b in mainline for arch/mips/_link.ld


Ignore:
Timestamp:
2005-06-03T13:17:05Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
70527f1
Parents:
dcbc8be
Message:

IA-32 fixes.
Use kernel addresses instead of physical addresses in map_page_to_frame().
Physical addresses are supposed to only be exported to mm hardware.
Because of this fix, userspace is functional again.

Remap EGA videoram to (0x80000000 + videoram) and change the ega driver to work with the new address.

Minor cosmetics through out the code.
Changes in linker scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/_link.ld

    rdcbc8be rac5d02b  
    1111
    1212SECTIONS {
    13     .image 0x80000000: AT (0x80000000) {
    14         ktext_start = .;
    15         *(.text);
    16         ktext_end = .;
     13        .image 0x80000000: AT (0x80000000) {
     14                ktext_start = .;
     15                *(.text);
     16                ktext_end = .;
    1717
    18         kdata_start = .;
    19         *(.rdata);
    20         *(.data);               /* initialized data */
    21         *(.lit8);
    22         *(.lit4);
    23         *(.sdata);
    24         *(.sbss);
    25         *(.bss);                /* uninitialized static variables */   
    26         *(.scommon);
    27         *(COMMON);              /* global variables */
    28         kdata_end = .;
     18                kdata_start = .;
     19                *(.rdata);
     20                *(.data);               /* initialized data */
     21                *(.lit8);
     22                *(.lit4);
     23                *(.sdata);
     24                *(.sbss);
     25                *(.bss);                /* uninitialized static variables */   
     26                *(.scommon);
     27                *(COMMON);              /* global variables */
     28                kdata_end = .;
    2929
    30     } = 0x00000000
     30        } = 0x00000000
    3131
    32     . = ABSOLUTE(hardcoded_ktext_size);
    33     .patch_1 : {
    34         LONG(ktext_end - ktext_start);
    35     }
     32        . = ABSOLUTE(hardcoded_ktext_size);
     33        .patch_1 : {
     34                LONG(ktext_end - ktext_start);
     35        }
    3636
    37     . = ABSOLUTE(hardcoded_kdata_size);
    38     .patch_2 : {
    39         LONG(kdata_end - kdata_start);
    40     }
     37        . = ABSOLUTE(hardcoded_kdata_size);
     38        .patch_2 : {
     39                LONG(kdata_end - kdata_start);
     40        }
    4141
    42     . = ABSOLUTE(hardcoded_load_address);
    43     .patch_3 : {
    44         LONG(0x80000000);
    45     }
     42        . = ABSOLUTE(hardcoded_load_address);
     43        .patch_3 : {
     44                LONG(0x80000000);
     45        }
    4646
    4747}
Note: See TracChangeset for help on using the changeset viewer.