mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 03:43:15 +01:00
Removed kmalloc. Initialization path resolved, almost done.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user