diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cpu/x86/pae.h | 5 | ||||
-rw-r--r-- | src/include/symbols.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/include/cpu/x86/pae.h b/src/include/cpu/x86/pae.h index 96999bb0a8..a8b5e893fc 100644 --- a/src/include/cpu/x86/pae.h +++ b/src/include/cpu/x86/pae.h @@ -27,6 +27,11 @@ void paging_set_pat(uint64_t pat); /* Set coreboot default PAT value. */ void paging_set_default_pat(void); +/* Load page directory pointer table and page tables from cbfs identified by + * the provided the names then enable paging. Return 0 on success, < 0 on + * failure. */ +int paging_enable_for_car(const char *pdpt_name, const char *pt_name); + #define MAPPING_ERROR ((void *)0xffffffffUL) void *map_2M_page(unsigned long page); diff --git a/src/include/symbols.h b/src/include/symbols.h index ada7fa70df..5b92899cee 100644 --- a/src/include/symbols.h +++ b/src/include/symbols.h @@ -106,6 +106,10 @@ extern u8 _framebuffer[]; extern u8 _eframebuffer[]; #define _framebuffer_size (_eframebuffer - _framebuffer) +extern u8 _pdpt[]; +extern u8 _epdpt[]; +#define _pdpt_size (_epdpt - _pdpt) + /* Put this into a .c file accessing a linker script region to mark that region * as "optional". If it is defined in memlayout.ld (or anywhere else), the * values from that definition will be used. If not, start, end and size will |