Просмотр исходного кода

!481 修正非主cpu的启动模式不正确的问题
Merge pull request !481 from jesven/fix_secondary_boot

bernard 3 лет назад
Родитель
Сommit
3a42e219c9
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      libcpu/arm/cortex-a/start_gcc.S

+ 3 - 3
libcpu/arm/cortex-a/start_gcc.S

@@ -666,12 +666,12 @@ after_enable_mmu2:
     cps #Mode_FIQ
     ldr sp, =irq_stack_2_limit
 
-    cps #Mode_SVC
-    ldr sp, =svc_stack_2_limit
-
     cps #Mode_ABT
     ldr sp, =abt_stack_2_limit
 
+    cps #Mode_SVC
+    ldr sp, =svc_stack_2_limit
+
     /* initialize the mmu table and enable mmu */
 #ifndef RT_USING_USERSPACE
     bl rt_hw_mmu_init