diff --git a/BrainLILOdrv.cpp b/BrainLILOdrv.cpp index 3c351f2..e9e2cab 100644 --- a/BrainLILOdrv.cpp +++ b/BrainLILOdrv.cpp @@ -120,7 +120,7 @@ static void EDNA2_installPhysicalInvoker(){ __attribute__((noreturn)) -static void EDNA2_runPhysicalInvoker(){ +static void EDNA2_runPhysicalInvoker(unsigned long bootloaderphysaddr,DWORD size){ // r0=info asm volatile("msr cpsr_c, #211\n" // to supervisor mode "mrc p15,0,r0,c1,c0,0\n" // read ctrl regs @@ -141,10 +141,9 @@ static void EDNA2_runPhysicalInvoker(){ "mrc p15,0,r10,c1,c0,0\n" // read ctrl regs "bic r10, r10, #5\n" // disable MMU/DCache "mcr p15,0,r10,c1,c0,0\n" // write ctrl regs - - "mov pc, r8\n" - - "swi #0\n" // jump! + ); + for(unsigned int i=0;i