局部数组过大导致栈溢出
·
static int __init csi_data_process_init(void)
{
struct csi_complex CSIMatrix[6][512] = {0};
printk("csi_data module init!!!\n");
iRet = csi_data_package(CSIMatrix);
}
走到csi_data_package函数直接重启,报出来kernel panic
原因在于栈溢出
/csi_process.c:71:1: warning: the frame size of 12288 bytes is larger than 1024 bytes [-Wframe-larger-than=]
将数组改为全局即可。
更多推荐


所有评论(0)