This repository has been archived on 2020-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
Legacy-Sync/headers/kheap.h
Jenny Curle f6ba6aa117 Legacy OS files. Have an i686-elf-gcc & -ld in your PATH,
and the Makefile will take care of the rest.
2019-04-01 01:38:50 +01:00

17 lines
512 B
C

#pragma once
#include "common.h"
#include <stdint.h>
#include <stddef.h>
uint32_t kmalloc(size_t sz, int align, uint32_t *phys);
//Allocate a chunk of memory, with size sz.
uint32_t kmalloc_a(size_t sz);
//Allocate a chunk of memory, with size sz. The physical address is returned as phys.
uint32_t kmalloc_p(size_t sz, uint32_t *phys);
//Allocate a chunk of memory, with size sz. The physical address is returned as phys. The memory must be page aligned.
uint32_t kmalloc_ap(size_t sz, uint32_t *phys);