diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-25 18:42:04 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-25 18:42:04 +0300 |
| commit | cd984298d7af1d7b376f16d445b75bcc740e60a5 (patch) | |
| tree | 279e23ca8724ebda32d17f790e2b4a41d11e2a23 /include | |
| parent | fdfdd03e3341d3b7d5e6a22a11a755a2c56eda1b (diff) | |
| download | kmi-cd984298d7af1d7b376f16d445b75bcc740e60a5.tar.gz kmi-cd984298d7af1d7b376f16d445b75bcc740e60a5.zip | |
simplify populate/probe pmap
Diffstat (limited to 'include')
| -rw-r--r-- | include/kmi/pmem.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/kmi/pmem.h b/include/kmi/pmem.h index 5f4b885..1eb1972 100644 --- a/include/kmi/pmem.h +++ b/include/kmi/pmem.h @@ -46,20 +46,23 @@ pm_t alloc_page(enum mm_order order); * of usage maps, but for now we assume all RAM is contiguous. * * @param ram_base Base physical address of RAM. - * @param ram_size Size of phsyical RAM. + * @param ram_size Size of physical RAM. * @param cont Physical address where to place the map. * @return Size of physical map. Check that is matches with \ref probe_pmap(). */ -pm_t populate_pmap(pm_t ram_base, size_t ram_size, pm_t cont); +size_t populate_pmap(pm_t ram_base, size_t ram_size, pm_t cont); /** * Probe size of RAM usage map. + * 'Pretends' to be populate_pmap(). * + * @param ram_base Base physical address RAM. * @param ram_size Size of physical RAM. + * @param cont Physical address where to place the map. * @return Size of physical map. Check that it matches with \ref * populate_pmap(). */ -pm_t probe_pmap(size_t ram_size); +size_t probe_pmap(pm_t ram_base, size_t ram_size, pm_t cont); /** * Initialize physical memory subsystem. |
