[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [mini-os master] Mini-OS: add EXPORT_SYMBOL() instances to sched.c
commit 4cc4cbff6e3b9997a879b213fb57b7d2c932c39b Author: Juergen Gross <jgross@xxxxxxxx> AuthorDate: Mon Nov 27 11:24:56 2023 +0100 Commit: Julien Grall <jgrall@xxxxxxxxxx> CommitDate: Mon Dec 4 16:52:57 2023 +0000 Mini-OS: add EXPORT_SYMBOL() instances to sched.c Add the needed instances of EXPORT_SYMBOL() to sched.c. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> --- arch/x86/sched.c | 5 +++++ sched.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/arch/x86/sched.c b/arch/x86/sched.c index e7b6954..dabe6fd 100644 --- a/arch/x86/sched.c +++ b/arch/x86/sched.c @@ -142,11 +142,13 @@ unsigned long __local_irq_save(void) local_irq_save(flags); return flags; } +EXPORT_SYMBOL(__local_irq_save); void __local_irq_restore(unsigned long flags) { local_irq_restore(flags); } +EXPORT_SYMBOL(__local_irq_restore); unsigned long __local_save_flags(void) { @@ -155,13 +157,16 @@ unsigned long __local_save_flags(void) local_save_flags(flags); return flags; } +EXPORT_SYMBOL(__local_save_flags); void __local_irq_disable(void) { local_irq_disable(); } +EXPORT_SYMBOL(__local_irq_disable); void __local_irq_enable(void) { local_irq_enable(); } +EXPORT_SYMBOL(__local_irq_enable); diff --git a/sched.c b/sched.c index 6f89ea4..e162cb6 100644 --- a/sched.c +++ b/sched.c @@ -128,6 +128,7 @@ void schedule(void) } } } +EXPORT_SYMBOL(schedule); struct thread* create_thread(char *name, void (*function)(void *), void *data) { @@ -147,6 +148,7 @@ struct thread* create_thread(char *name, void (*function)(void *), void *data) local_irq_restore(flags); return thread; } +EXPORT_SYMBOL(create_thread); #ifdef HAVE_LIBC static struct _reent callback_reent; @@ -184,6 +186,7 @@ struct _reent *__getreent(void) #endif return _reent; } +EXPORT_SYMBOL(__getreent); #endif void exit_thread(void) @@ -205,12 +208,14 @@ void exit_thread(void) printk("schedule() returned! Trying again\n"); } } +EXPORT_SYMBOL(exit_thread); void block(struct thread *thread) { thread->wakeup_time = 0LL; clear_runnable(thread); } +EXPORT_SYMBOL(block); void msleep(uint32_t millisecs) { @@ -219,12 +224,14 @@ void msleep(uint32_t millisecs) clear_runnable(thread); schedule(); } +EXPORT_SYMBOL(msleep); void wake(struct thread *thread) { thread->wakeup_time = 0LL; set_runnable(thread); } +EXPORT_SYMBOL(wake); void idle_thread_fn(void *unused) { -- generated by git-patchbot for /home/xen/git/mini-os.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |