Re: Debugging kext in lldb. Reading cpu_data_t offset 0x18 using %gs base address.
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GIhViwCyDVG1m81Zpy6LaIwyyeXhlZYcYzkXaI5I8bM=; b=pjPoc22dV07rWdymtfH6YGxhGhnHyA0EIuNthKM4EtX2C4V7DRRYqtBtInfBappftt sKll1xl0siB00MPEfK2C/1DmTEda5Uu6ZEVpyt2scyhZxNRzEGpVlln1wV8GYCkXYJbC VbGj6INF/hV0COolkqld1Iqi88QY/AdUCIybXn8+Qe2iiMM5cMUBB/7nap68TS6CpJam KKa40wjYy6WJJelyXFjJ9zEsqfWPQCYqhXAUSmTIG7lxTObSIc00cLG4Kq03aA0fue6N Fjtfs/94igC72v2SJtoLb9OGUsOEvZzjwjn1hnPX/YSZPH2XiaXuWh8zfJc4PhyntsFD 898Q== Hi, The cpu_preemption_level values were altered by the panic code. The actual values might be calculated by subtracting 3 from the cpu_preemption_level value for a CPU that panic'ed (panic_trap_to_debugger, kdp_i386_trap increase it) and 1 for other CPUs(a value is increased when processing IPI / NMI sent to freeze CPUs). That said the CPU's preemption level for a cpu that called msleep() was -1 before calling panic() and 0 for another cpu. The showcurrentstacks command has a bug by reporting values altered either by panic() or a kernel debugger code. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Slava Imameev