Ignore:
Timestamp:
2011-11-26T21:37:40Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
38ff925
Parents:
056ddc30
Message:

Replace multiple definitions of last_frame with config.physmem_end.
Do not duplicate code which calculates the end of physical memory.

File:
1 edited

Legend:

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

    r056ddc30 r40c8c17  
    4141#include <macros.h>
    4242
    43 // TODO: remove me
    44 uintptr_t last_frame = (uintptr_t) NULL;
    45 
    4643/** Create memory zones according to information stored in memmap.
    4744 *
     
    6663                    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
    6764               
    68                 // TODO: remove me
    69                 last_frame = max(last_frame, base + size);
    70 
    7165                if (!frame_adjust_zone_bounds(low, &base, &size))
    7266                        continue;
     
    106100         */
    107101        frame_mark_unavailable(ADDR2PFN(KA2PA(PFN2ADDR(0))), 1);
    108        
    109         end_of_identity = PA2KA(last_frame);
     102
     103        /* PA2KA will work only on low-memory. */
     104        end_of_identity = PA2KA(config.physmem_end - FRAME_SIZE) + PAGE_SIZE;
    110105}
    111106
Note: See TracChangeset for help on using the changeset viewer.