diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-04-07 12:15:34 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-04-07 12:15:34 -0400 |
commit | d29ce62670472175a1e3b5997e5d8a645e60891e (patch) | |
tree | 42124b9ef6b7028db0eee62ea42fe3da93df5dfc /src/stacks.h | |
parent | e9161822c67a518d862e600cb74e26848aeb0a89 (diff) | |
download | seabios-d29ce62670472175a1e3b5997e5d8a645e60891e.tar.gz |
Replace CONFIG_THREAD_OPTIONROMS with a runtime config setting.
Replace the CONFIG_THREAD_OPTIONROMS option with the CBFS (or fw_cfg)
file "etc/threads". This allows for the "threads during optionrom"
capability to be enabled/disabled without requiring SeaBIOS to be
recompiled. A value of "2" in this file will enable threads to run
during option rom execution.
This change also allows for all threads to be disabled via the same
runtime config file. Setting the file to a value of "0" will cause
SeaBIOS to perform all hardware initialization serially.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stacks.h')
-rw-r--r-- | src/stacks.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stacks.h b/src/stacks.h index 9fe87612..d8584f22 100644 --- a/src/stacks.h +++ b/src/stacks.h @@ -21,6 +21,8 @@ extern struct thread_info MainThread; struct thread_info *getCurThread(void); void yield(void); void yield_toirq(void); +void thread_init(void); +int threads_during_optionroms(void); void run_thread(void (*func)(void*), void *data); void wait_threads(void); struct mutex_s { u32 isLocked; }; |