Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Need 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.DK

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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