diff options
Diffstat (limited to 'util/cbfstool/cbfs-payload-linux.c')
-rw-r--r-- | util/cbfstool/cbfs-payload-linux.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/cbfstool/cbfs-payload-linux.c b/util/cbfstool/cbfs-payload-linux.c index 33a5e1afb17b..9e9a8741d096 100644 --- a/util/cbfstool/cbfs-payload-linux.c +++ b/util/cbfstool/cbfs-payload-linux.c @@ -302,9 +302,8 @@ int parse_bzImage_to_payload(const struct buffer *input, PAYLOAD_SEGMENT_CODE, kernel_base); /* trampoline */ - uint64_t entrypoint = 0x40000; /*TODO: any better place? */ bzp_output_segment(&bzp, &bzp.trampoline, - PAYLOAD_SEGMENT_CODE, entrypoint); + PAYLOAD_SEGMENT_CODE, TRAMPOLINE_ENTRY_LOC); /* cmdline */ bzp_output_segment(&bzp, &bzp.cmdline, @@ -315,7 +314,7 @@ int parse_bzImage_to_payload(const struct buffer *input, PAYLOAD_SEGMENT_DATA, initrd_base); /* Terminating entry segment. */ - bzp_output_segment(&bzp, NULL, PAYLOAD_SEGMENT_ENTRY, entrypoint); + bzp_output_segment(&bzp, NULL, PAYLOAD_SEGMENT_ENTRY, TRAMPOLINE_ENTRY_LOC); /* Set size of buffer taking into account potential compression. */ buffer_set_size(&bzp.output, bzp.offset); |