* <!-- description --> * @brief This function maps the code aliases into the microkernel's * root page tables. For more information about how this mapping is * performed, please see alloc_and_copy_mk_code_aliases. * * <!-- inputs/outputs --> * @param a a pointer to a code_aliases_t that stores the aliases * being mapped * @param pmut_rpt the root page table to map the cod
| 43 | * @return LOADER_SUCCESS on success, LOADER_FAILURE on failure. |
| 44 | */ |
| 45 | NODISCARD int64_t |
| 46 | map_mk_code_aliases( |
| 47 | struct code_aliases_t const *const a, root_page_table_t *const pmut_rpt) NOEXCEPT |
| 48 | { |
| 49 | (void)a; |
| 50 | (void)pmut_rpt; |
| 51 | |
| 52 | if (g_mut_map_4k_page > 0) { |
| 53 | --g_mut_map_4k_page; |
| 54 | |
| 55 | if (0 == g_mut_map_4k_page) { |
| 56 | return LOADER_FAILURE; |
| 57 | } |
| 58 | |
| 59 | bf_touch(); |
| 60 | } |
| 61 | else { |
| 62 | bf_touch(); |
| 63 | } |
| 64 | |
| 65 | return LOADER_SUCCESS; |
| 66 | } |
nothing calls this directly
no test coverage detected