[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [PATCH v3 26/43] arm64: implement the run_idle_thread



The patch implements the run_idle_thread() for the idle thread.

Signed-off-by: Huang Shijie <shijie.huang@xxxxxxx>
---
 arch/arm/sched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/sched.c b/arch/arm/sched.c
index a209513..e63ddd4 100644
--- a/arch/arm/sched.c
+++ b/arch/arm/sched.c
@@ -39,8 +39,8 @@ struct thread* arch_create_thread(char *name, void 
(*function)(void *),
 
 void run_idle_thread(void)
 {
-    __asm__ __volatile__ ("mov sp, %0; bx %1"::
-            "r"(idle_thread->sp + 4 * CALLEE_SAVED_REGISTERS),
+    __asm__ __volatile__ ("mov sp, %0; br %1"::
+            "r"(idle_thread->sp + sizeof(unsigned long) * 
CALLEE_SAVED_REGISTERS),
             "r"(idle_thread->ip));
     /* Never arrive here! */
 }
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.