]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm
Added a library for the default exception handler and started to add a dissasembler...
[mirror_edk2.git] / BeagleBoardPkg / Sec / Arm / ModuleEntryPoint.asm
index fb30e4dd59f38a3132c72100c84d279f9adb86c7..71e60b707af9c3c7bfc3ce48eb45e68a8e753b7d 100755 (executable)
@@ -53,38 +53,14 @@ stack_pointer_setup
   LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3)    /* stack size arg3  */\r
   add     r4, r2, r3\r
 \r
-  //Enter IRQ mode and set up IRQ stack pointer\r
-  mov     r0,#0x12|0x80|0x40\r
-  msr     CPSR_c,r0\r
-  mov     r13,r4\r
-\r
-  //Enter Abort mode and set up Abort stack pointer\r
-  mov     r0,#0x17|0x80|0x40\r
-  msr     CPSR_c,r0\r
-  sub     r4, r4, #0x400\r
-  mov     r13,r4\r
-\r
-  //Enter Undefined mode and set up Undefined stack pointer\r
-  mov     r0,#0x1b|0x80|0x40\r
-  msr     CPSR_c,r0\r
-  sub     r4, r4, #0x400\r
-  mov     r13,r4\r
-\r
   //Enter SVC mode and set up SVC stack pointer\r
   mov     r0,#0x13|0x80|0x40\r
   msr     CPSR_c,r0\r
-  sub     r4, r4, #0x400\r
-  mov     r13,r4\r
-\r
-  //Enter System mode and set up System stack pointer\r
-  mov     r0,#0x1f|0x80|0x40\r
-  msr     CPSR_c,r0\r
-  sub     r4, r4, #0x400\r
   mov     r13,r4\r
 \r
   // Call C entry point\r
   mov     r0, #0x80000000   /* memory base arg0          */\r
-  mov     r1, #0x08000000   /* memory size arg1          */\r
+  mov     r1, #0x10000000   /* memory size arg1          */\r
   blx     CEntryPoint       /* Assume C code is thumb    */\r
 \r
 ShouldNeverGetHere\r