Skip to content

Commit

Permalink
libsel4vmmplatsupport: use vm->entry
Browse files Browse the repository at this point in the history
- Remove hard coded address here also.
- Add comment about zImage usage in Linux

Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Apr 20, 2023
1 parent 2cff1b3 commit 14276f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsel4vmmplatsupport/src/arch/arm/guest_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ static uintptr_t load_guest_kernel_image(vm_t *vm, const char *kernel_image_name
load_addr = vm->entry;
break;
case IMG_ZIMAGE:
/* zImage is used for 32-bit Linux kernels only. */
load_addr = ((struct zimage_hdr *)(&header))->start;
if (0 == load_addr) {
load_addr = load_base_addr + 0x8000;
load_addr = vm->entry;
}
break;
default:
Expand Down

0 comments on commit 14276f5

Please sign in to comment.