Skip to content
Snippets Groups Projects
Commit ece3a460 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Add a CPU init function for TPL


For TPL we only need to set up the features and identify the CPU to a
basic level. Add a function to handle that.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 0ced70a0
No related branches found
No related tags found
No related merge requests found
......@@ -385,6 +385,14 @@ static void setup_mtrr(void)
}
}
int x86_cpu_init_tpl(void)
{
setup_cpu_features();
setup_identity();
return 0;
}
int x86_cpu_init_f(void)
{
if (ll_boot_init())
......
......@@ -34,6 +34,15 @@ int x86_cpu_init_f(void);
*/
int x86_cpu_reinit_f(void);
/**
* x86_cpu_init_tpl() - Do the minimum possible CPU init
*
* This just sets up the CPU features and figured out the identity
*
* @return 0 (indicating success, to mimic cpu_init_f())
*/
int x86_cpu_init_tpl(void);
int cpu_init_f(void);
void setup_gdt(struct global_data *id, u64 *gdt_addr);
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment