sandbox: Refactor code to create os_jump_to_file()
authorSimon Glass <sjg@chromium.org>
Fri, 16 Nov 2018 01:44:05 +0000 (18:44 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 26 Nov 2018 13:25:36 +0000 (08:25 -0500)
commit7b5ea1452742be72a28f52f4602c986eb342779b
treeb3663e4b3c5e3c8c4c18596528d4bfb58a0456ea
parent36bcea62af98145e6859cabec9c8f82d1d057bf9
sandbox: Refactor code to create os_jump_to_file()

At present os_jump_to_image() jumps to a given image, and this is written
to a file. But it is useful to be able to jump to a file also.

To avoid duplicating code, split out the implementation of
os_jump_to_image() into a new function that jumps to a file.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c