Commit message (Expand) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | . | Kartik K. Agaram | 2021-07-28 | 1 | -11/+0 |
* | . | Kartik K. Agaram | 2021-07-28 | 1 | -0/+142 |
* | . | Kartik K. Agaram | 2021-07-16 | 3 | -1219/+89 |
* | . | Kartik K. Agaram | 2021-07-16 | 21 | -0/+5340 |
* | . | Kartik Agaram | 2021-03-23 | 77 | -73265/+0 |
* | 7476 | Kartik Agaram | 2020-12-30 | 77 | -77/+77 |
* | 7398 | Kartik Agaram | 2020-12-23 | 1 | -2/+2 |
* | 7397 | Kartik Agaram | 2020-12-23 | 1 | -346/+376 |
* | 7396 | Kartik Agaram | 2020-12-23 | 1 | -0/+371 |
* | 7335 | Kar#ifndef ALLOC_H
#define ALLOC_H
#include "common.h"
#include "process.h"
void initializeKernelHeap();
void *ksbrkPage(int n);
void *kmalloc(uint32 size);
void kfree(void *v_addr);
void initializeProcessHeap(Process* process);
void *sbrk(Process* process, int nBytes);
uint32 getKernelHeapUsed();
struct MallocHeader {
unsigned long size:31;
unsigned long used:1;
} __attribute__ ((packed));
typedef struct MallocHeader MallocHeader;
#endif // ALLOC_H
|