diff options
-rw-r--r-- | src/lib/thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c index 4d06021ea8..3be2e92f5c 100644 --- a/src/lib/thread.c +++ b/src/lib/thread.c @@ -313,6 +313,10 @@ int thread_run_until(struct thread_handle *handle, enum cb_err (*func)(void *), struct thread *t; struct block_boot_state *bbs; + /* This is a ramstage specific API */ + if (!ENV_RAMSTAGE) + dead_code(); + current = current_thread(); if (!thread_can_yield(current)) { |