Changeset 683 for trunk/kernel/mm/vseg.c
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vseg.c
r672 r683 62 62 vseg_t * vseg_alloc( void ) 63 63 { 64 kmem_req_t req; 65 66 req.type = KMEM_KCM; 67 req.order = bits_log2( sizeof(vseg_t) ); 68 req.flags = AF_KERNEL | AF_ZERO; 69 70 return kmem_alloc( &req ); 64 return (vseg_t*)kmem_alloc( bits_log2( sizeof(vseg_t)) , AF_ZERO ); 71 65 } 72 66 … … 74 68 void vseg_free( vseg_t * vseg ) 75 69 { 76 kmem_req_t req; 77 78 req.type = KMEM_KCM; 79 req.ptr = vseg; 80 kmem_free( &req ); 70 kmem_free( vseg , bits_log2( sizeof(vseg_t)) ); 81 71 } 82 72
Note: See TracChangeset
for help on using the changeset viewer.