X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..378393581903b274cb7a4d18e0d978071a6b592d:/osfmk/ppc/mcount.s diff --git a/osfmk/ppc/mcount.s b/osfmk/ppc/mcount.s index b05860953..38a4d9153 100644 --- a/osfmk/ppc/mcount.s +++ b/osfmk/ppc/mcount.s @@ -21,7 +21,6 @@ */ #include #include -#include #include #include #include @@ -50,7 +49,8 @@ mcount: rlwinm r8,r9,0,MSR_EE_BIT+1,MSR_EE_BIT-1 ; Turn off interruptions mtmsr r8 ; Update msr isync - mfsprg r7,0 ; Get per_proc + mfsprg r7,1 ; Get the current activation + lwz r7,ACT_PER_PROC(r7) ; Get the per_proc block lhz r6,PP_CPU_FLAGS(r7) ; Get cpu flags ori r5,r6,mcountOff ; cmplw r5,r6 ; is mount off @@ -60,7 +60,8 @@ mcount: mr r4, r0 bl _mcount ; Call the C routine lwz r9,FM_ARG0(r1) - mfsprg r7,0 ; Get per-proc block + mfsprg r7,1 ; Get the current activation + lwz r7,ACT_PER_PROC(r7) ; Get the per_proc block lhz r6,PP_CPU_FLAGS(r7) ; Get CPU number li r5,mcountOff ; andc r6,r6,r5 ; Clear mcount_off