mmu: refine function check_mmu_1gb_support

change its input from map_params to page_table_type, and make it as a
public API.

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com>
This commit is contained in:
Jason Chen CJ
2018-04-13 08:52:54 +08:00
committed by Jack Ren
parent 4f6bdee0c5
commit 71ee5ef6c8
2 changed files with 10 additions and 6 deletions

View File

@@ -315,6 +315,7 @@ struct mem_io_node {
};
uint64_t get_paging_pml4(void);
bool check_mmu_1gb_support(int page_table_type);
void *alloc_paging_struct(void);
void free_paging_struct(void *ptr);
void enable_paging(uint64_t pml4_base_addr);