#include <oskit/amm.h>int amm_reserve(amm_t *amm, oskit_addr_t *addr, oskit_size_t size);
Mark the specified address range as AMM_RESERVED. All entries within the range are effected regardless of existing attributes.Amm_Reserve is a simplified interface to amm_modify intended to be used with amm_init, amm_allocate, amm_deallocate, and amm_protect.
- amm
- A pointer to the amm_t structure representing the address map.
- addr
- Start address of the desired range.
- size
- Size of the desired range.
Returns zero if successful, an error code otherwise.
amm_allocate, amm_deallocate, amm_init, amm_modify, amm_protect