struct jailhouse_header {
/* filled at build time */
char signature[8];
- unsigned long bss_start;
- unsigned long bss_end;
+ unsigned long core_size;
unsigned long percpu_size;
unsigned long entry;
#include <jailhouse/string.h>
#include <asm/spinlock.h>
-extern u8 __bss_start[], __bss_end[];
+extern u8 __hv_core_end[];
void *config_memory;
struct jailhouse_header __attribute__((section(".header")))
hypervisor_header = {
.signature = JAILHOUSE_SIGNATURE,
- .bss_start = (unsigned long)__bss_start,
- .bss_end = (unsigned long)__bss_end,
+ .core_size = (unsigned long)__hv_core_end,
.percpu_size = sizeof(struct per_cpu),
.entry = (unsigned long)arch_entry,
};
sizeof(header->signature)) != 0)
goto error_release_fw;
- hv_core_size = PAGE_ALIGN(header->bss_end);
+ hv_core_size = PAGE_ALIGN(header->core_size);
percpu_size = num_possible_cpus() * header->percpu_size;
config_size = jailhouse_system_config_size(&config_header);
if (hv_mem->size <= hv_core_size + percpu_size + config_size)