【Linux】カーネル総合3【Kernel】at LINUX
【Linux】カーネル総合3【Kernel】 - 暇つぶし2ch159:login:Penguin
06/09/10 12:35:55 ladbRUaW
thread_info.h にはこう書いてありましたが、間違えてましたか?
もし間違えているなら代案を教えてください。

/* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void)
{
struct thread_info *ti;
__asm__("andl %%esp,%0; ":"=r" (ti) : "0" (~(THREAD_SIZE - 1)));
return ti;
}




次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch