matos/core/uaddrspace.h

16 lines
516 B
C
Raw Permalink Normal View History

2022-08-09 16:15:00 +02:00
#pragma once
#include "mmuContext.h"
#include "process.h"
#include "types.h"
#include <stddef.h>
struct uAddrSpace;
struct uAddrVirtualReg;
struct uAddrSpace * uAddrSpaceCreate(struct process *proc);
int uAddrSpaceDelete(struct uAddrSpace *addr);
struct mmu_context * uAddrSpaceGetMMUContext(struct uAddrSpace *addr);
int uAddrSpaceSetHeap(struct uAddrSpace *as, uaddr_t addr, size_t size);
2022-09-03 23:32:31 +02:00
int uAddrSpaceCheckNAlloc(struct uAddrSpace *as, vaddr_t addr);
2022-08-09 16:15:00 +02:00
uaddr_t sysBrk(struct uAddrSpace *as, uaddr_t newHeapTop);