Changeset 2e9eae2 in mainline for generic/src/mm/frame.c
- Timestamp:
- 2006-06-23T16:03:53Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 757551a3
- Parents:
- a832dd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/frame.c
ra832dd7 r2e9eae2 929 929 * @param pzone Preferred zone 930 930 * 931 * @return Allocated frame.932 * 933 */ 934 pfn_tframe_alloc_generic(__u8 order, int flags, int *status, int *pzone)931 * @return Physical address of the allocated frame. 932 * 933 */ 934 void * frame_alloc_generic(__u8 order, int flags, int *status, int *pzone) 935 935 { 936 936 ipl_t ipl; … … 972 972 if (status) 973 973 *status = FRAME_NO_MEMORY; 974 return NULL;974 return 0; 975 975 } 976 976 … … 987 987 if (status) 988 988 *status = FRAME_OK; 989 return v; 989 990 if (flags & FRAME_KA) 991 return (void *)PA2KA(PFN2ADDR(v)); 992 return (void *)PFN2ADDR(v); 990 993 } 991 994 … … 996 999 * If it drops to zero, move the frame structure to free list. 997 1000 * 998 * @param pfn Frame numberof the frame to be freed.999 */ 1000 void frame_free( pfn_t pfn)1001 * @param Frame Physical Address of of the frame to be freed. 1002 */ 1003 void frame_free(__address frame) 1001 1004 { 1002 1005 ipl_t ipl; 1003 1006 zone_t *zone; 1007 pfn_t pfn = ADDR2PFN(frame); 1004 1008 1005 1009 ipl = interrupts_disable();
Note:
See TracChangeset
for help on using the changeset viewer.