summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-01-12 14:22:33 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-01-12 14:22:33 -0500
commita48f602c2099d3bd325729fe64e5b237d1b597f8 (patch)
treeb7e4688da07656fc7bbf3b79de763899fe849108 /src/util.h
parentb837e68d5a6c1a5945513f1995875445a1594c8a (diff)
downloadqemu-seabios-a48f602c2099d3bd325729fe64e5b237d1b597f8.tar.gz
post: Always set HaveRunPost prior to setting any other global variable
The HaveRunPost flag controls whether post or reboot handling is entered on a reset signal. The flag needs to be set before any other global variable because an external reboot signal could occur at any time. (If any global variable is modified prior to setting HaveRunPost then the code might enter post with global variables in a dirty state.) Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 76db57f..43f2199 100644
--- a/src/util.h
+++ b/src/util.h
@@ -223,6 +223,7 @@ void device_hardware_setup(void);
void prepareboot(void);
void startBoot(void);
void reloc_preinit(void *f, void *arg);
+void code_mutable_preinit(void);
// serial.c
void serial_setup(void);