diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-09 19:24:12 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-09 19:24:12 +0300 |
| commit | 89d7cf197b2cae130565467bdfad5d5ef5fed2dd (patch) | |
| tree | 1cff68c3997bfa237b48aa499d45a3700d40e73e /src/dmem.c | |
| parent | 298636079d912d0936f8156a609fe74b839c547b (diff) | |
| download | kmi-89d7cf197b2cae130565467bdfad5d5ef5fed2dd.tar.gz kmi-89d7cf197b2cae130565467bdfad5d5ef5fed2dd.zip | |
allow regions to have reserved areas
+ A reserved area is an area at the start of the region that should not
be used unless explicitly asked for, for example null pages.
As such, a small correction to my previous commit message: There's no
danger in not locking req_mem() etc, as a null page will only be
allocated when explicitly asked for.
Diffstat (limited to 'src/dmem.c')
| -rw-r--r-- | src/dmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,8 +24,8 @@ stat_t init_devmem(pm_t ram_base, pm_t ram_top) /* -1 being the effective highest address possible */ size_t post_pages = __pages(-1) - ram_pages - pre_pages; - init_region(&pre_ram, 0, pre_pages); - init_region(&post_ram, ram_top, post_pages); + init_region(&pre_ram, 0, pre_pages, 0); + init_region(&post_ram, ram_top, post_pages, 0); return OK; } |
