[PATCH] Mini-OS: export main_thread

Juergen Gross posted 1 patch 5 months, 2 weeks ago
Failed in applying to current master (apply log)
sched.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] Mini-OS: export main_thread
Posted by Juergen Gross 5 months, 2 weeks ago
The main_thread variable needs to be exported for applications.

Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
---
 sched.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sched.c b/sched.c
index e162cb60..b1633be9 100644
--- a/sched.c
+++ b/sched.c
@@ -62,6 +62,7 @@ static struct thread_list thread_list = MINIOS_TAILQ_HEAD_INITIALIZER(thread_lis
 static int threads_started;
 
 struct thread *main_thread;
+EXPORT_SYMBOL(main_thread);
 
 void schedule(void)
 {
-- 
2.35.3