Changeset eb1b8b6 in mainline


Ignore:
Timestamp:
2006-02-08T00:08:55Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
085d973
Parents:
8b3eebb
Message:

Change ia64 kernel image to link and load at 0x100000 where
it (or its heap or stack) won't mess up with the ROM region.

Blacklist ia64 frame 0 from frame allocator so that 0 won't be
returned to malloc and friends. This can be reenabled again
once the kernel is not identity mapped.

Files:
4 edited

Legend:

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

    r8b3eebb reb1b8b6  
    1212
    1313SECTIONS {
    14         .image 0x0000000000001000: AT (0x0000000000001000) {
     14        .image 0x0000000000100000: AT (0x0000000000100000) {
    1515                ktext_start = .;
    1616                *(K_TEXT_START);
     
    3838        _hardcoded_ktext_size = ktext_end - ktext_start;
    3939        _hardcoded_kdata_size = kdata_end - kdata_start;
    40         _hardcoded_load_address = 0x0000000000001000;
     40        _hardcoded_load_address = 0x0000000000100000;
    4141
    4242}
  • arch/ia64/src/mm/frame.c

    r8b3eebb reb1b8b6  
    4242{
    4343        /*
     44         * Workaround to prevent slab allocator from allocating frame 0.
     45         * Remove the following statement when the kernel is no longer
     46         * identity mapped.
     47         */
     48        frame_region_not_free(0, FRAME_SIZE);
     49
     50        /*
    4451         * Blacklist ROM regions.
    4552         */
  • arch/sparc64/src/mm/frame.c

    r8b3eebb reb1b8b6  
    3434{
    3535        /*
    36          * Workaround to prevent slab allocator from allocating frame 0,
    37          * which is not mapped by OFW.
     36         * Workaround to prevent slab allocator from allocating frame 0.
     37         * Frame 0 is
     38         * a) not mapped by OFW
     39         * b) would be confused with NULL error return code
    3840         */
    3941        frame_region_not_free(0, FRAME_SIZE);
  • generic/src/mm/buddy.c

    r8b3eebb reb1b8b6  
    169169        /*
    170170         * Return the other half to buddy system.
    171          * PROBLEM!!!! FILL FIND OTHER PART AS BUDDY AND LINK TOGETHER
     171         * PROBLEM!!!! WILL FIND OTHER PART AS BUDDY AND LINK TOGETHER
    172172         */
    173173        b->op->mark_busy(b, res);
Note: See TracChangeset for help on using the changeset viewer.