Page 1 of 1

sef_fs hangs the system

Posted: Tue Dec 21, 2004 10:27 am
by zhouq0725
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.