diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-20 13:29:01 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-20 13:29:01 +0200 |
| commit | 6b2465318b2dc922de282deea96c1621f7f41039 (patch) | |
| tree | ee12863bb4aab536810bbe13638bf21317b37658 /include/apos | |
| parent | a37974009152b4bf6a2d7ed205a48230f939dd72 (diff) | |
| download | kmi-6b2465318b2dc922de282deea96c1621f7f41039.tar.gz kmi-6b2465318b2dc922de282deea96c1621f7f41039.zip | |
Revert "still some issues with vmem"
This reverts commit 69d13626a37e33f31627a1144605a8fb93684d25.
Diffstat (limited to 'include/apos')
| -rw-r--r-- | include/apos/init.h | 30 | ||||
| -rw-r--r-- | include/apos/vmem.h | 5 |
2 files changed, 0 insertions, 35 deletions
diff --git a/include/apos/init.h b/include/apos/init.h deleted file mode 100644 index 6e20439..0000000 --- a/include/apos/init.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef APOS_INIT_H -#define APOS_INIT_H - -#include <apos/pmem.h> -#include <apos/vmem.h> - -struct init_data_t { - pm_t init_base; - pm_t init_top; - - pm_t initrd_base; - pm_t initrd_top; - - pm_t pmap_base; - pm_t pmap_top; - - pm_t fdt_base; - pm_t fdt_top; - - pm_t stack_base; - pm_t stack_top; - - struct vm_branch_t *kernel_vm_base; - - size_t max_order; - size_t bits[10]; - size_t page_shift; -}; - -#endif /* APOS_INIT_H */ diff --git a/include/apos/vmem.h b/include/apos/vmem.h index ef309e2..daa9d10 100644 --- a/include/apos/vmem.h +++ b/include/apos/vmem.h @@ -39,11 +39,6 @@ struct sp_mem { */ /* defined by arch */ - -void map_vmem(struct vm_branch_t *branch, - pm_t paddr, vm_t vaddr, uint8_t flags, enum mm_order_t order); -void unmap_vmem(struct vm_branch_t *branch, vm_t vaddr, enum mm_order_t order); - int sp_mem_init(struct sp_reg_root *r, vm_t start, size_t nums); vm_t alloc_uvmem(struct tcb *r, size_t s, uint8_t flags); |
