Skip to content

Commit

Permalink
Support more than 3 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
mist64 committed Dec 28, 2015
1 parent 7774dbe commit 793d17c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/firmware/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,14 @@ kexec_load_kernel(char *path, char *cmdline) {
zp->e820_map[1].addr = 0x0000000000100000;
zp->e820_map[1].size = (memory.size - 0x0000000000100000);
zp->e820_map[1].type = 1;
zp->e820_entries = 2;
if (xh_vm_get_highmem_size() == 0) {
zp->e820_entries = 2;
} else {
zp->e820_map[2].addr = 0x0000000100000000;
zp->e820_map[2].size = xh_vm_get_highmem_size();
zp->e820_map[2].type = 1;
zp->e820_entries = 3;
}

kernel.base = kernel_start;
kernel.size = kernel_init_size;
Expand Down

1 comment on commit 793d17c

@marcbachmann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.