aboutsummaryrefslogtreecommitdiff
path: root/include/apos/mem.h
AgeCommit message (Collapse)Author
2022-10-29rewrite pmemKimplul
2022-10-14remove references to cowKimplul
+ Skip cow for now, maybe implement later but try to keep things simple.
2022-09-14add canary to kernel stackKimplul
2022-06-12add license textsKimplul
2022-06-09continue documentationKimplul
2022-05-29continue documentationKimplul
2022-05-29continue documentation effortsKimplul
2022-05-29modify formatting rulesKimplul
2022-05-28continue documenting sourceKimplul
2022-05-24initial musings about execKimplul
2022-05-23switch from clang-format to uncrustifyKimplul
The output is close enough, and I like that uncrustify is a third-party tool, so people can install a single tool for formatting instead of having to lug around a whole toolchain. I fully expect to have to add settings to uncrustify.conf, but let's see how this goes.
2022-05-22add @file info to all filesKimplul
+ Next step, start documenting contents of each file.
2022-05-21add status info to memory mappingsKimplul
+ next up would probably be to start working on process/thread relationships, largely as documented. Still not entirely sure about how I want to handle fork, but I suppose I might figure it out at some point.
2022-05-12initial workings of shared memoryKimplul
+ Should document this better but essentially a server requests a shared buffer, and chan then share this buffer to a thread. Freeing the buffer is done through normal means. MR_SHARED is used for buffers that are shared, and MR_OWNED tells whoever is freeing that region that it is allowed to free the physical memory behind the shared buffer.
2022-04-23ran clang-formatKimplul
2022-04-10add basic ubsan and fix issues reported by itKimplul
2022-04-10add clang format and run itKimplul
2022-01-07Modified pmem configuration handlingKimplul
2022-01-07Steps towards better status/debugging controlKimplul
2022-01-07Improved header dependency treeKimplul
2021-12-29RefactoringKimplul
+ Mainly just moving stuff out or arch/riscv/ that should be handled in common/ + Prepared separate process stack/call stack for server callbacks, rest to be implemeted soon ish
2021-12-19[WIP] virtual memory managementKimplul
2021-10-19Initial virtual memory mapping functionsKimplul
2021-10-11Start designing vmem frameworkKimplul
2021-10-11Renamed [pv]addr_t to [pv]m_tKimplul
2021-10-10Prepare proper jump to kernelKimplul
2021-10-01First jump to virtual memory!Kimplul
+ Lots of bughunting to do, probably lots of off-by-one and so on errors, and I make a lot of naive and possibly dangerous assumptions. But cool start nonetheless. Should also come up with some method of exchanging data between the init and actual kernel, probably some struct of some sort. TODO
2021-08-22Integrated libfdtKimplul
+ Added new common/ directory, into which code that should be shared with init and kernel is to be added. Currently string.c and bytes.c. Code in common/ should be marked with __weak, so as to allow the arch to implement a better, more optimised version of the function if possible/required. + Created include/apos/types.h with macros essentially providing the libc limits.h and stdint.h. At the moment I use gcc/clang predefined macros for most things.