Changeset 79f119b9 in mainline for kernel/arch/sparc64/src/mm/page.c


Ignore:
Timestamp:
2006-11-18T12:41:34Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be544ef
Parents:
e5a2ee8
Message:

Modify the sparc64 startup code to not cause MMU traps before it takes over the TLB and
the trap table. Fix several PA2KA and KA2PA omittions or errors. Fix configuration to pass
the DEFS variable along.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/mm/page.c

    re5a2ee8 r79f119b9  
    136136         * by frame_alloc().
    137137         */
    138         ASSERT(last_frame);
    139         uintptr_t virtaddr = ALIGN_UP(last_frame, 1<<(order + FRAME_WIDTH));
    140         last_frame = ALIGN_UP(virtaddr + size, 1<<(order + FRAME_WIDTH));
     138        ASSERT(PA2KA(last_frame));
     139        uintptr_t virtaddr = ALIGN_UP(PA2KA(last_frame), 1 << (order + FRAME_WIDTH));
     140        last_frame = ALIGN_UP(KA2PA(virtaddr) + size, 1 << (order + FRAME_WIDTH));
    141141       
    142142        for (i = 0; i < sizemap[order].count; i++) {
Note: See TracChangeset for help on using the changeset viewer.