Changeset 5691653 in mainline


Ignore:
Timestamp:
2011-02-25T23:44:32Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27833d8
Parents:
e7c42ac0
Message:

Map component memory before inflating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/src/main.c

    re7c42ac0 r5691653  
    257257               
    258258                /*
    259                  * At this point, we claim the physical memory that we are
    260                  * going to use. We should be safe in case of the virtual
     259                 * At this point, we claim and map the physical memory that we
     260                 * are going to use. We should be safe in case of the virtual
    261261                 * address space because the OpenFirmware, according to its
    262                  * SPARC binding, should restrict its use of virtual memory
    263                  * to addresses from [0xffd00000; 0xffefffff] and
    264                  * [0xfe000000; 0xfeffffff].
    265                  *
    266                  * We don't map this piece of memory. We simply rely on
    267                  * SILO to have it done for us already in this case.
    268                  *
    269                  * XXX SILO only maps 8 MB for us here. We should improve
    270                  *     this code to be totally independent on the behavior
    271                  *     of SILO.
    272                  *
     262                 * SPARC binding, should restrict its use of virtual memory to
     263                 * addresses from [0xffd00000; 0xffefffff] and [0xfe000000;
     264                 * 0xfeffffff].
    273265                 */
    274266                ofw_claim_phys(bootinfo.physmem_start + dest[i - 1],
    275267                    ALIGN_UP(components[i - 1].inflated, PAGE_SIZE));
     268               
     269                ofw_map(bootinfo.physmem_start + dest[i - 1], dest[i - 1],
     270                    ALIGN_UP(components[i - 1].inflated, PAGE_SIZE), -1);
    276271               
    277272                int err = inflate(components[i - 1].start, components[i - 1].size,
Note: See TracChangeset for help on using the changeset viewer.