Re: dumping pid registers on panic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 18, 2008 at 11:44 AM, Kyle McMartin <kyle@xxxxxxxxxxxxx> wrote:
> +static u32 __get_pid_from_cr(struct pt_regs *regs, int i)
> +{
> +#ifdef CONFIG_64BIT
> +       return (regs->protid[(i&1?i^1:i)>>1] >> (i&1?32:0)) & 0xffffffff;
> +#else
> +       return regs->cr[pid_cr[i]];
> +#endif /*CONFIG_64BIT*/
> +}

Oh, I see you are too clever for me today. Thanks.

c.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux