X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4ba76501152d51ccb5647018f3192c6096367d48..c6bf4f310a33a9262d455ea4d3f0630b1255e3fe:/osfmk/kdp/ml/arm/kdp_machdep.c diff --git a/osfmk/kdp/ml/arm/kdp_machdep.c b/osfmk/kdp/ml/arm/kdp_machdep.c index a324da172..25da7d706 100644 --- a/osfmk/kdp/ml/arm/kdp_machdep.c +++ b/osfmk/kdp/ml/arm/kdp_machdep.c @@ -706,6 +706,16 @@ machine_trace_thread64(thread_t thread, #endif } +#if XNU_MONITOR + vm_offset_t cpu_base = (vm_offset_t)pmap_stacks_start; + vm_offset_t cpu_top = (vm_offset_t)pmap_stacks_end; + + if (((prevfp >= cpu_base) && (prevfp < cpu_top)) != + ((fp >= cpu_base) && (fp < cpu_top))) { + switched_stacks = TRUE; + break; + } +#endif } if (!switched_stacks) {