cheukyin.github.io - Cheukyin.blog

Description: Just for Fun

internet (24533) linux (7503) python (4055) sql (1881) jekyll (1495) emacs (83) archlinux (29) embbed (1) cheukyin (1)

Example domain paragraphs

Your Internet Explorer is not supported. Please upgrade your Internet Explorer to version 9+, or use latest Google chrome 、 Mozilla Firefox .

If you are using IE 9 or later, make sure you turn off "Compatibility view" .

xv6中存储cpu和进程信息的技巧 xv6是一个支持多处理器的Unix-lik操作系统, 近日阅读源码时发现xv6在记录当前CPU和进程状态时非常tricky 首先,上代码: 1 extern struct cpu cpus[NCPU]; 2 extern int ncpu; 3 4 // Per-CPU variables, holding pointers to the 5 // current cpu and to the current process. 6 // The asm suffix tells gcc to use "%gs:0" to refer to cpu 7 // and "%gs:4" to...