包含linux内核代码的注释,非常详细,对初学者帮助很大,例子如下。 //// 协处理器仿真函数。 // 中断处理程序调用的C 函数,参见(kernel/math/system_call.s,169 行)。 18 void math_emulate(long edi, long esi, long ebp, long sys_call_ret, 19 long eax,long ebx,long ecx,long edx, 20 unsigned short fs,unsigned short
#include "StdAfx.h" #include "cpuassembly.h" // bit flags set by cpuid when called with register eax set to 1 #define MMX_SUPPORTED 0x00800000 #define SSE_SUPPORTED 0x02000000 #define SSE2_SUPPORTED 0x04000000 #define AMD_3DNOW_SUPPORTED 0x80000000