Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 40c8c17 in mainline for kernel/arch/amd64/src/mm/page.c


Ignore:
Timestamp:
2011-11-26T21:37:40Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
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/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.