Subversion Repositories HelenOS

Rev

Rev 1833 | Rev 1894 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1833 Rev 1854
Line 926... Line 926...
926
 
926
 
927
/** Allocate power-of-two frames of physical memory.
927
/** Allocate power-of-two frames of physical memory.
928
 *
928
 *
929
 * @param order  Allocate exactly 2^order frames.
929
 * @param order  Allocate exactly 2^order frames.
930
 * @param flags  Flags for host zone selection and address processing.
930
 * @param flags  Flags for host zone selection and address processing.
931
 * @param status Allocation status (FRAME_OK on success), unused if NULL.
-
 
932
 * @param pzone  Preferred zone
931
 * @param pzone  Preferred zone
933
 *
932
 *
934
 * @return Physical address of the allocated frame.
933
 * @return Physical address of the allocated frame.
935
 *
934
 *
936
 */
935
 */
Line 985... Line 984...
985
    return (void *)PFN2ADDR(v);
984
    return (void *)PFN2ADDR(v);
986
}
985
}
987
 
986
 
988
/** Free a frame.
987
/** Free a frame.
989
 *
988
 *
990
 * Find respective frame structure for supplied PFN.
989
 * Find respective frame structure for supplied physical frame address.
991
 * Decrement frame reference count.
990
 * Decrement frame reference count.
992
 * If it drops to zero, move the frame structure to free list.
991
 * If it drops to zero, move the frame structure to free list.
993
 *
992
 *
994
 * @param Frame Physical Address of of the frame to be freed.
993
 * @param Frame Physical Address of of the frame to be freed.
995
 */
994
 */