mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 23:54:14 +00:00
virt/lx_emul: init boot_cpu_data on x86
Values are used by arch/x86/lib/delay.c and slub allocator. Issue #5236
This commit is contained in:
parent
14d3c4cb5e
commit
258c06df03
@ -23,5 +23,14 @@ void clocksource_arch_init(struct clocksource * cs)
|
||||
}
|
||||
|
||||
|
||||
struct cpuinfo_x86 boot_cpu_data __read_mostly;
|
||||
|
||||
/*
|
||||
* Early_identify_cpu() in linux sets this up normally, used by drm_cache,
|
||||
* arch/x86/lib/delay.c, and slub allocator.
|
||||
*/
|
||||
struct cpuinfo_x86 boot_cpu_data =
|
||||
{
|
||||
.x86_clflush_size = (sizeof(void*) == 8) ? 64 : 32,
|
||||
.x86_cache_alignment = (sizeof(void*) == 8) ? 64 : 32,
|
||||
.x86_phys_bits = (sizeof(void*) == 8) ? 36 : 32,
|
||||
.x86_virt_bits = (sizeof(void*) == 8) ? 48 : 32
|
||||
};
|
||||
|
@ -50,8 +50,8 @@ const struct trace_print_flags pageflag_names[] = { {0,NULL}};
|
||||
#include <asm/processor.h>
|
||||
|
||||
/*
|
||||
* Early_identify_cpu() in linux sets this up normally, used by drm_cache
|
||||
* as well as arch/x86/lib/delay.c.
|
||||
* Early_identify_cpu() in linux sets this up normally, used by drm_cache,
|
||||
* arch/x86/lib/delay.c, and slub allocator.
|
||||
*/
|
||||
struct cpuinfo_x86 boot_cpu_data =
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user