我只是找不到这个问题的解决方案..
我想做的是使用 gcc 调用汇编函数。看看:
// Somewhere in start.s
global _start_thread
_start_thread:
; ...
// Somewhere in UserThread.cpp
extern void _start_thread( pointer );
static void UserMainHack()
{
_start_thread(((UserThread*)currentThread)->getUserMain());
}
谢谢你的帮助..