sef_fs hangs the system

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

zhouq0725
Posts: 2
Joined: Mon Aug 02, 2004 2:17 pm

sef_fs hangs the system

Tue Dec 21, 2004 10:27 am

I use AT91RM9200DK 2.4.19-rmk6. I my device driver, i want to use kernel syscall. I simply use
...
fs = get_fs();
set_fs (get_ds());
printk("1st set_fs ok!");
set_fs (fs);
printk("2nd set_fs ok!");
return 0;
}

after "1st set_fs ok!" shows, the system hangs. Why?

I guessed that fs = get_fs(); is wrong. Then use
fs = get_fs();
set_fs (get_ds());

set_fs (get_ds());

return 0;
}
The result is same as previous. Any one can help me.

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 3 guests