From b6ab015acba5354ba4034db78086d72ec5cbfbea Mon Sep 17 00:00:00 2001 From: Ry Date: Thu, 13 Jul 2023 15:02:19 -0700 Subject: [PATCH] kernel/fxf: Bail out if the FXF could not be relocated --- kernel/fxf/launch.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/fxf/launch.asm b/kernel/fxf/launch.asm index 74200b9..d38900a 100644 --- a/kernel/fxf/launch.asm +++ b/kernel/fxf/launch.asm @@ -101,6 +101,8 @@ launch_fxf_from_open_file_1: ; relocate the binary mov r0, [launch_fxf_binary_ptr] call parse_fxf_binary + cmp r0, 0 + ifz jmp launch_fxf_from_disk_file_error ; create a new task mov r1, r0