version 1.2, 2002/03/19 10:35:39 |
version 1.3, 2002/03/19 10:41:32 |
|
|
else |
else |
mm = mm_xmalloc(mmalloc, sizeof(struct mm_master)); |
mm = mm_xmalloc(mmalloc, sizeof(struct mm_master)); |
|
|
/* |
/* |
* If the memory map has a mm_master it can be completely |
* If the memory map has a mm_master it can be completely |
* shared including authentication between the child |
* shared including authentication between the child |
* and the client. |
* and the client. |
|
|
if (mms == NULL) |
if (mms == NULL) |
return (NULL); |
return (NULL); |
|
|
/* Debug */ |
/* Debug */ |
memset(mms->address, 0xd0, size); |
memset(mms->address, 0xd0, size); |
|
|
tmp = mm_make_entry(mm, &mm->rb_allocated, mms->address, size); |
tmp = mm_make_entry(mm, &mm->rb_allocated, mms->address, size); |
|
|
if (mms == NULL) |
if (mms == NULL) |
fatal("mm_free(%p): can not find %p", mm, address); |
fatal("mm_free(%p): can not find %p", mm, address); |
|
|
/* Debug */ |
/* Debug */ |
memset(mms->address, 0xd0, mms->size); |
memset(mms->address, 0xd0, mms->size); |
|
|
/* Remove from allocated list and insert in free list */ |
/* Remove from allocated list and insert in free list */ |