随笔分类 -  Linux

What Every Programmer Should Know About Memory
摘要:What Every Programmer Should Know About Memorywww.akkadia.org/drepper/cpumemory.pdf 6 What Programmers Can DoAfter the descriptions in the previous sections it is clear that there are many, many opportunities for programmers to influence a program's performance, positively or negatively. And thi 阅读全文
posted @ 2011-05-16 13:26 sun_kang 阅读(2260) 评论(0) 推荐(0)
Difference between software interrupt, exception, trap
摘要:Definition and difference between Hardware interrupt, Software Interrupt, Exception, Trap and Signals?Answer:Interrupts can be categorized into two groups which are asynchronous interrupts (aka interrupt, hardware interrupt) and synchronous interrupts (aka exception). The former may arrive anytime, 阅读全文
posted @ 2011-04-29 10:15 sun_kang 阅读(719) 评论(0) 推荐(0)
Linux kerneltravel 内核模块介绍
摘要:走进Linux 操作系统:http://www.kerneltravel.net/journal/i/linuxsys.htmlhttp://www.kerneltravel.net/journal/i/03.htm系统引导:http://www.kerneltravel.net/journal/i/04.htm内存管理:http://www.kerneltravel.net/journal/v/mem.htmhttp://www.kerneltravel.net/?p=450内核中的调度与同步:http://www.kerneltravel.net/journal/vi/syn.htm文件系 阅读全文
posted @ 2011-04-28 13:55 sun_kang 阅读(233) 评论(0) 推荐(0)
setup.asm
摘要:%include"protect.inc"; 常量, 宏, 以及一些说明org 0x0500; 实模式jmpSetUp_seg;------------------------------------------------------------------------------------------times0x10-($-$$)db0KernelSizeequ512; 此处地址: $ -> 0x500MCRNumberDW:dd0MemChkBuf:times256db0MemSizeDW:dd0MemInfo1db"_______________ 阅读全文
posted @ 2008-11-17 23:13 sun_kang 阅读(222) 评论(0) 推荐(0)
protect.inc
摘要:Des_32EQU4000h; 32 位段Des_16EQU0000h; 16 位段Des_GEQU8000h; 段界限粒度, G=1 表示界限粒度为4K 字节Des_DPL0EQU 00h; DPL = 000 0 0000Des_DPL1EQU 20h; DPL = 101 0 0000Des_DPL2EQU 40h; DPL = 210 0 0000Des_DPL3EQU 60h; DPL = 311 0 0000Des_DREQU90h;1001 0000 存在的 只读 数据段类型值Des_DRWEQU92h;1001 0010 存在的 可读写 数据段属性值Des_DRWAEQU93h 阅读全文
posted @ 2008-11-17 23:06 sun_kang 阅读(180) 评论(0) 推荐(0)
boot.asm
摘要:org07c00h; 告诉编译器程序加载到7c00处jmpBootSeg;times 256db0BootSeg:movax, csmovds, axmoves, ax;置堆栈段指针movax, 08FC0hmovss, axmovesp, 0FFFFh;清屏movcx, 0000hmovdx, 1850hmovbh, 07hmovax, 0600hint10h;置光标为左上角movbh, 00hmovdx, 0000hmovah, 02hint10h;显示 BootMessage 信息movax, BootMessagemovbp, ax; ES:BP = 串地址movcx, BootMes 阅读全文
posted @ 2008-11-17 23:02 sun_kang 阅读(193) 评论(0) 推荐(0)
Linux 建议学习路径[转]
摘要:建议学习路径:首先先学学编辑器,vim, emacs什么的都行。然后学make file文件,只要知道一点就行,这样就可以准备编程序了。然后看看《C程序设计语言》K&R,这样呢,基本上就可以进行一般的编程了,顺便找本数据结构的书来看。如果想学习UNIX/LINUX的编程->《APUE》绝对经典的教材,加深一下功底,学习《UNP》的第二卷。这样基本上系统方面的就可以掌握了。然后再看Douglus E. Comer的《用TCP/IP进行网际互连》第一卷,学习一下网络的知识,再看《UNP》的第一卷,不仅学习网络编程,而且对系统编程的一些常用的技巧就很熟悉了,如果继续网络编程,建议看《T 阅读全文
posted @ 2006-08-17 14:46 sun_kang 阅读(173) 评论(0) 推荐(0)
linux学习网站大全[转]
摘要:http://www-128.ibm.com/developerworks/cn/linux/Linuxsir-非常不错的中文Linux社区,能学习到很多东西http://www.linuxsir.com/bbs Linuxfans-Linux公社,中文站点,国内非常出名http://www.linuxfans.org Linuxeden-有许多Linux软件下载,更新较快http://www.linuxeden.com Linux的新闻和文档http://www.linuxaid.com.cn linux技术中坚站http://www.chinalinuxpub.com/ 1.OS站点Red 阅读全文
posted @ 2006-08-15 11:01 sun_kang 阅读(398) 评论(0) 推荐(0)