Changeset 40c8c17 in mainline for kernel/arch/amd64


Ignore:
Timestamp:
2011-11-26T21:37:40Z (14 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.

Location:
kernel/arch/amd64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/mm/frame.h

    r056ddc30 r40c8c17  
    4343#include <typedefs.h>
    4444
    45 extern uintptr_t last_frame;
    4645extern void frame_low_arch_init(void);
    4746extern void frame_high_arch_init(void);
  • kernel/arch/amd64/src/mm/page.c

    r056ddc30 r40c8c17  
    6464               
    6565        /*
    66          * PA2KA(identity) mapping for all frames.
     66         * PA2KA(identity) mapping for all low-memory frames.
    6767         */
    68         for (cur = 0; cur < min(config.identity_size, last_frame);
     68        for (cur = 0; cur < min(config.identity_size, config.physmem_end);
    6969            cur += FRAME_SIZE)
    7070                page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, identity_flags);
Note: See TracChangeset for help on using the changeset viewer.