revert the memory map to the old one (mostly)
This commit is contained in:
@@ -288,10 +288,7 @@ void main(FcramLayout *layout, KCoreContext *ctxs)
|
||||
kextBasePa = p->basePA;
|
||||
stolenSystemMemRegionSize = p->stolenSystemMemRegionSize;
|
||||
|
||||
u32 kextSize = (u32)(__end__ - __start__);
|
||||
layout->systemSize -= stolenSystemMemRegionSize;
|
||||
layout->baseAddr = layout->baseAddr - stolenSystemMemRegionSize + kextSize;
|
||||
layout->baseSize = layout->baseSize + stolenSystemMemRegionSize - kextSize;
|
||||
fcramLayout = *layout;
|
||||
coreCtxs = ctxs;
|
||||
|
||||
@@ -313,4 +310,8 @@ void main(FcramLayout *layout, KCoreContext *ctxs)
|
||||
|
||||
rosalinaState = 0;
|
||||
hasStartedRosalinaNetworkFuncsOnce = false;
|
||||
|
||||
// DSB, Flush Prefetch Buffer (more or less "isb")
|
||||
__asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 4" :: "r" (0) : "memory");
|
||||
__asm__ __volatile__ ("mcr p15, 0, %0, c7, c5, 4" :: "r" (0) : "memory");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user