cpu/x86: expose and add paging helper functions
commitd5e4746cf84a8da1b6465058ec7c7cc19c3c32c0
authorAaron Durbin <adurbin@chromium.org>
Tue, 17 Apr 2018 20:35:48 +0000 (17 14:35 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 23 Apr 2018 09:18:28 +0000 (23 09:18 +0000)
treef5bf8a5cb74f8a757183c4fb2480b9c64a9a8edc
parentae18f80febc3ecaacc0314e942a4f8b248bfcc4c
cpu/x86: expose and add paging helper functions

Add the following functions for use outside of the paging module:

void paging_enable_pae_cr3(uintptr_t cr3);
void paging_enable_pae(void);
void paging_disable_pae(void);

The functions just enable and/or disable paging along with PAE.
Disassembly shows equivalent output for both versions.

BUG=b:72728953

Change-Id: I9665e7ec4795a5f52889791f73cf98a8f4def827
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/25714
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
src/cpu/x86/pae/pgtbl.c
src/include/cpu/x86/pae.h