摘要:
unsigned long get_free_page(void) { register unsigned long __res asm("ax"); __asm__("std ; repne ; scasb\n\t" "jne 1f\n\t" "movb $1,1(%%edi)\n\t" "sall $12,%%ecx\n\t" ... 阅读全文
摘要:
In order to reload a file, you can use the macro M-x revert-buffer (if you want you can bind it to a key), or use a more practice trick: use C-x C-v RET. This tell to find an alternate file and by def... 阅读全文
摘要:
./configure --enable-debugger --enable-show-ips --enable-cdrom --enable-ne2000 make 阅读全文
摘要:
小巧精悍型的: x-win32 xmanager X! Extra VNC 航空母舰级的: Exceed 阅读全文
摘要:
1. 首先进入msys-shell,设置系统变量HOME 2. 运行生成cscope.files,有两个方法: a)find -iname '*.[ch]' -o -iname '*.[ch]pp' > cscope.files b)下载 cscope-indexer脚本 http://code.google.com/p/elisp/source/browse/trunk/emacs/c... 阅读全文
摘要:
1. 修改__build_installer.bat: c:\python\python.exe setup.py bdist_wininst --bitmap=logos\installer.bmp --title=PaiMei 改为 c:\python27\python.exe setup.py bdist_wininst --bitmap=logos\installer.bmp --t... 阅读全文
摘要:
BTS 指令,一般用在自旋锁上或者类似概念。自旋锁核心操作就是InterlockedBitTestAndSet。 InterlockedBitTestAndSet有两种实现: 1. ReactOS方法 static __inline__ BOOLEAN InterlockedBitTestAndSet(IN LONG volatile *Base, ... 阅读全文
摘要:
!dh 命令kd> !dh 7c800000File Type: DLL FILE HEADER VALUES 14C machine (i386) 4 number of sections 4121457C time date stamp Tue Aug 17 07:38:36 2004 0 file pointer to symbol table 0 number of symbols E0 size of optional header 210E characteristics Executable Line numbers ... 阅读全文
摘要:
NT_UP Use this macro to indicate whether your driver will run on a uniprocessor machine or multiprocessor machine. The default is uniprocessor, as follows: NT_UP=1 To specify multiprocessor... 阅读全文
摘要:
INTEL的IDE控制器连接在PCI总线上,其驱动是INTELIED.sys(intel提供)+PCIIEDX.sys(微软提供),堆栈关系如下: !DevObj !DrvObj !DevExt ObjectName > 80e9b030 \Driver\IntelIde 80e9b0e8 PciIde0 80e931d0 \Driver... 阅读全文