Removed kmalloc. Initialization path resolved, almost done.

This commit is contained in:
Bahadir Balban
2009-08-06 14:15:39 +03:00
parent 519bfba8c7
commit e329a7c91a
13 changed files with 104 additions and 91 deletions

View File

@@ -127,6 +127,8 @@ typedef struct pmd_table {
#define TASK_PGD(x) (x)->space->pgd
#define STACK_ALIGNMENT 8
/* Kernel's data about the fault */
typedef struct fault_kdata {
u32 faulty_pc;

View File

@@ -1,9 +0,0 @@
#ifndef __KMALLOC_H__
#define __KMALLOC_H__
void *kmalloc(int size);
int kfree(void *p);
void *kzalloc(int size);
void init_kmalloc();
#endif

View File

@@ -20,7 +20,7 @@ struct id_pool_variable {
u32 bitmap[];
};
struct id_pool *id_pool_new_init(int mapsize);
struct id_pool *id_pool_new_init(int mapsize, void *buffer);
int id_new(struct id_pool *pool);
int id_del(struct id_pool *pool, int id);
int id_get(struct id_pool *pool, int id);