blob: 5bbfdf3acaca8e1183cd62f94a346a364e257452 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef CPU_X86_PAE_H
#define CPU_X86_PAE_H
#include <stdint.h>
/* Enable paging with cr3 value for page directory pointer table as well as PAE
option in cr4. */
void paging_enable_pae_cr3(uintptr_t cr3);
/* Enable paging as well as PAE option in cr4. */
void paging_enable_pae(void);
/* Disable paging as well as PAE option in cr4. */
void paging_disable_pae(void);
/* Set/Clear NXE bit in IA32_EFER MSR */
void paging_set_nxe(int enable);
/* Set PAT MSR */
void paging_set_pat(uint64_t pat);
#define MAPPING_ERROR ((void *)0xffffffffUL)
void *map_2M_page(unsigned long page);
#endif /* CPU_X86_PAE_H */
|