Fixed the overflow bug in heap.c that would occur on allocation of all the memory of the heap.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@442 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
@@ -8,7 +8,9 @@
|
||||
#include <kernel.h>
|
||||
#include <stage2.h>
|
||||
|
||||
int heap_init(addr new_heap_base, unsigned int new_heap_size);
|
||||
#define HEAP_SIZE 0x00400000
|
||||
|
||||
int heap_init(addr new_heap_base);
|
||||
int heap_init_postsem(kernel_args *ka);
|
||||
void *kmalloc(unsigned int size);
|
||||
void kfree(void *address);
|
||||
|
||||
Reference in New Issue
Block a user