Forum Discussion
Altera_Forum
Honored Contributor
22 years agoNeed a little help here
In line aprox# 160 of the "/linux-2.6.x/arch/nios2nommu/kernel/process.c" the function here below is implemented.
int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) My problem is that when I run the linux kernel it dies within the __asm__ __volatile(. . . . . ); statement. What can cause my kernel to stop at this point??? Regards GreateWhite.DK1 Reply
- Altera_Forum
Honored Contributor
Hi GreateWhite.DK,
Are you sure your kernel stops there? This function does a trap (system call "clone"), and you might not be able to step into it. Problem probably happens somewhere down the path of clone system call. My advice is put a break point at the entry of nios2_clone() and see what happens. Regards, wentao