摘要: /** 2010-1-21* 该文件时内核中有关任务调度的函数程序,其中包含基本函数sleep_on,* wakeup,schedule等,以及一些简单的系统调用。同时将软盘的几个操作* 函数也放置在这里。** schedule函数首先对所有的任务检查,唤醒任何一个已经得到信号的任务,* 具体的方法是针对任务数组中的每个任务,检查其警报定时值alarm。如果任务* 的alarm已经超期(alarm < jiffies),则在它的信号位图中设置SIGALARM,然后* 情书alarm值。jiffies是系统自从开机之后算起的滴答数。在scheed.h中定义,* 如果进程信号的位图中 阅读全文
posted @ 2010-01-28 21:57 qiang.xu 阅读(1847) 评论(0) 推荐(0) 编辑
摘要: /** 本程序主要是实现系统调用中断int 0x80的入口处理过程机信号检测过程,* 同时给出了两个系统调用功能的底层接口sys_execve和sys_fork。还列出了* 处理过程类似的协处理器出错int 16,设备不存在int 7,硬盘中断int 46,* 软盘中断int 38的中断处理程序。**//** linux/kernel/system_call.s** (C) 1991 Linus Torvalds*//** system_call.s contains the system-call low-level handling routines.* This also contain 阅读全文
posted @ 2010-01-28 21:53 qiang.xu 阅读(2089) 评论(0) 推荐(0) 编辑
摘要: /** linux/kernel/asm.s** (C) 1991 Linus Torvalds*//** asm.s contains the low-level code for most hardware faults.* page_exception is handled by the mm, so that isn't here. This* file also handles (hopefully) fpu-exceptions due to TS-bit, as* the fpu must be properly saved/resored. This hasn' 阅读全文
posted @ 2010-01-28 21:50 qiang.xu 阅读(895) 评论(1) 推荐(0) 编辑