diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 13:50:14 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 13:50:14 +0100 |
commit | 7dcea5fdafe66d8bcf1eeacbaf3f3f3b1c258dfc (patch) | |
tree | b56d111955ab45215caf11bd3b2ba6560d14c171 /paging.h | |
parent | 3387b288a53422131f22f1fc96168a128edc9902 (diff) | |
download | rpi-MMU-example-7dcea5fdafe66d8bcf1eeacbaf3f3f3b1c258dfc.tar.gz rpi-MMU-example-7dcea5fdafe66d8bcf1eeacbaf3f3f3b1c258dfc.zip |
implement basic memory section allocation for processes
Diffstat (limited to 'paging.h')
-rw-r--r-- | paging.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,4 +3,12 @@ void setup_flat_map(void); +void setup_pager_structures(uint32_t available_mem); + +#define CLAIM_FAILURE 0xffff + +// returns section number or CLAIM_FAILURE in case of failure +uint16_t claim_and_map_section +(void *owner, uint16_t where_to_map, uint8_t access_permissions); + #endif // PAGING_H |