Changeset f5926ad9 in mainline


Ignore:
Timestamp:
2006-11-20T22:29:23Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
abc9fc5
Parents:
91d6d28
Message:

Update comment and move initialization code away from application processor codepath.

File:
1 edited

Legend:

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

    r91d6d28 rf5926ad9  
    4646 *
    4747 * Walk the bootinfo memory map and create frame zones according to it.
    48  * The first frame is not blacklisted here as it is done in generic
    49  * frame_init().
    5048 */
    5149void frame_arch_init(void)
     
    6361                         * It already contains no holes.
    6462                         */
    65        
     63
    6664                        confdata = ADDR2PFN(start);
    6765                        if (confdata == ADDR2PFN(KA2PA(PFN2ADDR(0))))
     
    7068                        last_frame = max(last_frame, start + ALIGN_UP(size, FRAME_SIZE));
    7169                }
     70
     71                /*
     72                 * On sparc64, physical memory can start on a non-zero address.
     73                 * The generic frame_init() only marks PFN 0 as not free, so we
     74                 * must mark the physically first frame not free explicitly here,
     75                 * no matter what is its address.
     76                 */
     77                frame_mark_unavailable(ADDR2PFN(KA2PA(PFN2ADDR(0))), 1);
    7278        }
    7379       
    74         /*
    75          * On sparc64, physical memory can start on a non-zero address.
    76          * The generic frame_init() only marks PFN 0 as not free, so we
    77          * must mark the physically first frame not free explicitly here,
    78          * no matter what is its address.
    79          */
    80         frame_mark_unavailable(ADDR2PFN(KA2PA(PFN2ADDR(0))), 1);
    8180}
    8281
Note: See TracChangeset for help on using the changeset viewer.