Skip to content

Commit

Permalink
PC platform vm_exit(): fix handling of reboot_on_exit flag
Browse files Browse the repository at this point in the history
The PC platform code that handles a VM exit should reference the
root_fs global variable (defined in kernel/init.c), which holds a
pointer to the root filesystem, instead of a static variable that
is never set.
  • Loading branch information
francescolavra committed Apr 7, 2021
1 parent eb5b594 commit 7041351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/pc/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define init_debug(x, ...)
#endif

static filesystem root_fs;
extern filesystem root_fs;

#define BOOTSTRAP_REGION_SIZE_KB 2048
static u8 bootstrap_region[BOOTSTRAP_REGION_SIZE_KB << 10];
Expand Down

0 comments on commit 7041351

Please sign in to comment.