kmalloc: add actual memory allocator

Now that memory allocation finally kind of works,
we can finally start focusing on the core system
architecture.  This commit also fixes some bugs in
get_page() and friends, as well as performance
improvements because the page map is addressed as
unsigned longs rather than individual bytes.
This commit is contained in:
anna 2021-09-29 01:10:41 +02:00
parent f1922723f0
commit 5c0fa715a4
Signed by: fef
GPG key ID: EC22E476DC2D3D84
9 changed files with 512 additions and 97 deletions

View file

@ -18,7 +18,7 @@ void clist_add(struct clist *head, struct clist *new)
head->next = new;
}
void clist_add_end(struct clist *head, struct clist *new)
void clist_add_first(struct clist *head, struct clist *new)
{
head->prev->next = new;
new->next = head;