X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..7ddcb079202367355dddccdfa4318e57d50318be:/osfmk/i386/mcount.s diff --git a/osfmk/i386/mcount.s b/osfmk/i386/mcount.s index 822d643e0..0246ba152 100644 --- a/osfmk/i386/mcount.s +++ b/osfmk/i386/mcount.s @@ -41,6 +41,10 @@ Entry(mcount) // Check that this cpu is ready. // This delays the start of mcounting until a cpu is really prepared. // + mov %gs, %ax + test %ax, %ax + jz 1f + movl %gs:CPU_RUNNING,%eax testl %eax,%eax jz 1f