Re: [PATCH v3 13/14] ASoC: SOF: Add xtensa support

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

 



On Tue, Dec 11, 2018 at 03:23:17PM -0600, Pierre-Louis Bossart wrote:
> Add common directory for xtensa architecture

> +	for (i = 0; i <= stack_words - 4; i += 4) {
> +		dev_err(sdev->dev, "0x%8.8x: 0x%8.8x 0x%8.8x 0x%8.8x 0x%8.8x\n",
> +			stack_ptr + i, stack[i], stack[i + 1], stack[i + 2],
> +			stack[i + 3]);
> +	}
> +
> +	/* deal with any remaining words */
> +	switch (stack_words - i) {
> +	case 0:
> +		break;
> +	case 1:
> +		dev_err(sdev->dev, "0x%8.8x: 0x%8.8x\n",
> +			stack_ptr + stack_words - 1, stack[stack_words - 1]);
> +		break;
> +	case 2:
> +		dev_err(sdev->dev, "0x%8.8x: 0x%8.8x 0x%8.8x\n",
> +			stack_ptr + stack_words - 2, stack[stack_words - 2],
> +			stack[stack_words - 1]);
> +		break;
> +	case 3:
> +		dev_err(sdev->dev, "0x%8.8x: 0x%8.8x 0x%8.8x 0x%8.8x\n",
> +			stack_ptr + stack_words - 3, stack[stack_words - 3],
> +			stack[stack_words - 2], stack[stack_words - 1]);
> +		break;
> +	default:
> +		break;
> +	}

hex_dump_to_buffer().

-- 
With Best Regards,
Andy Shevchenko


_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux