- 博客(158)
- 资源 (4)
- 收藏
- 关注
原创 Understanding the linux kernel-ch4-Interrupt and exception
IRQs and Interrupts
2008-07-02 19:16:00
745
原创 Understanding the linux kernel-ch4-Interrupts and Exceptions
An interrupt is usually defined as an event that alters the sequence of instructions executed by a processor
2008-07-01 21:19:00
556
原创 Understanding the linux kernel-ch3-Destroying Processes
Process Termination
2008-07-01 21:01:00
481
原创 Understanding the linux kernel-ch3-Creating Processes
Traditional Unix systems copying the entire address space of the parent process
2008-07-01 20:59:00
559
转载 智力题
一个皇帝,路易15或路易16,四个人得罪了他,他要杀人,但为了表现仁慈的一面,给了他们一个活命的机会四个人把眼睛蒙上,ABCD各戴一个帽子,分别是红红蓝蓝,中间一道高墙,A站一侧,BCD 站一侧,B对墙,C在B后,D在C后,然后把蒙布解开,自己看不见自己的帽子,后面的可以看到前面的帽子 然后国王说,如果某人说对了自己帽子的颜色,四个人都放,否则四个人都杀,而且四个人一共只有一次说话的机会
2008-06-21 00:10:00
430
原创 简单的加法
int i=1; int j; j=(++i)+(++i)+(++i)+(++i); int i=1; int j; j=(++i)+(++i)+(i++)+(i++)+(++i);
2008-06-20 23:28:00
397
原创 Understanding the linux kernel-ch2-Memory addressing
Chapter 2. Memory Addressing
2008-06-19 21:06:00
744
原创 自己动手写的内存管理程序Ver0.1
/*** menmory management module* chenbdchenbd@gmail.com**/#include #include #include #define MM_OK (0x00)#define MM_NG (0xff)#define MM_UNIT ((uns
2008-06-16 19:38:00
653
转载 Linux内存:内存管理的实质
转自:http://linux.chinaunix.net/bbs/thread-1003872-1-1.html1. 内核初始化: * 内核建立好内核页目录页表数据库,假设物理内存大小为len,则建立了[3G--3G+len]::[0--len]这样的虚地址vaddr和物理地址paddr的线性对应关系; * 内核建立一个page数组,page数组和物理页面
2008-06-14 14:00:00
561
原创 自己动手写的内存管理程序
/*** menmory management module* chenbdchenbd@gmail.com**/#include #include #include #define MM_OK (0x00)#define MM_NG (0xff)#define MM_UNIT ((uns
2008-06-13 19:29:00
938
原创 自己动手写的内存管理程序
/*** 自己动手写的内存管理程序* 完善中* chenbdchenbd@gmail.com**/#include #include #include #define MM_OK (0x00)#define MM_NG (0xff)#define MM_UNIT ((uns
2008-06-12 20:09:00
793
原创 stack
/** * stack* chenbdchenbd@gmail.com**/#include #include #define STACK_BUF_LEN (5)#define STACK_OK (0x00)#define STACK_NG (0xff)//#define STAC
2008-06-12 19:49:00
531
原创 循环队列
/*** 循环队列实现* chenbdchenbd@gmail.com*/#include #include #define RING_BUF_LEN (5)#define RING_BUF_OK (0x00)#define RING_BUF_NG (0xff)#define R
2008-06-12 19:47:00
540
原创 安全过河问题
/*** 安全过河问题:* 三个商人各带一名随从准备过河,可是只有一只船,* 船上只能容纳两个人,并且在河的任何一岸,如果随从数目大于商人数,* 随从就会杀掉商人!问商人如何安全过河!**/#include int accrossriver(int i){ if ( 2 == i ) {
2008-06-11 20:38:00
1209
转载 逝去日子
可否再继续发著青春梦 不知到光阴飞踪 道理没法听懂 一再落泊街中 十个美梦盖过了天空 温馨的爱渗透了微风 热爱竞逐每秒每分钟 轻轻一笑挫折再用功 逝去日子 经过多少 逝去日子 打算是多么远 不知道努力向上闯不断 可否会冲开波折 步履没法歇止 失意又再开始 十个美梦哪里去追踪 温馨的爱那日会落空 面对决择背向了初衷 不经不觉世故已学懂 逝去日子 经过多少 逝去日子 打算是多么远 逝去日子 拥有多少
2008-06-09 21:01:00
516
转载 GPLv3
GNU GENERAL PUBLIC LICENCE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim
2008-06-03 22:09:00
923
原创 最简单的makefile
#######################SRCDIR=.OBJDIR=.CC=gccautocrechg.o:autocrechg.c $(CC) -c autocrechg.clnk:autocrechg.o $(CC) autocrechg.o -o autocrechg .PHONY clean: /usr/bin/rm -rf *.obj /usr/bin/rm -rf *.o
2008-06-01 22:28:00
683
转载 Fedora 8 安装指南
Fedora 8 安装指南(全) 作者: deepwhite 发布日期: 2008-1-18 查看数: 8913 出自: http://w
2008-06-01 10:21:00
1158
转载 硬盘安装fedora
先把下载的iso文件放到一个fat32 的盘里,我放到E盘了!先把下载的第一张盘中的isolinux中的vmlinuz与initrd.img解压出来,和你下到的安装盘放到一个根目录中!然后下载grub for dos 到一个盘中,然后把grub for dos解压到C盘中,必须把文件解压到根目录下,然后打开C盘下的boot.ini文件(在文件夹下设置显示系统文件就可以看到它)我们需要加一个选项,让
2008-06-01 10:17:00
488
原创 小程序
/* * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of t
2008-05-29 18:58:00
522
转载 Linux内核2.6.19源代码目录树结构
要深入的学习Linux的工作机制,就必须阅读其源代码。现已最新的2.6.19内核(可以在http://www.kernel.org下载)为例,简单的介绍下Linux内核源代码目录树结构。 arch:包含和硬件体系结构相关的代码,每种平台占一个相应的目录。和32位PC相关的代码存放在i386目录下,其中比较重要的包括kernel(内核核心部分)、mm(内存管理)、math-emu(浮点单元仿真)、l
2008-05-28 20:49:00
654
原创 FAT file system-Backup Boot Sector
Another feature on FAT32 volumes that is not present on FAT16/FAT12 is the BPB_BkBootSec field. FAT16/FAT12 volumes can be totally lost if the contents of sector 0
2008-05-27 21:32:00
1037
原创 FAT file system-FAT32 FSInfo Sector Structure
Name Offset (byte) Size (bytes) Description FSI_LeadSig 0 4
2008-05-27 21:29:00
1831
原创 FAT file system-FAT Volume Initialization
struct DSKSZTOSECPERCLUS { DWORD DiskSize; BYTE SecPerClusVal;
2008-05-27 21:25:00
791
原创 FAT file system-What are the two reserved clusters at the start of the FAT for?
The first reserved cluster, FAT[0], contains the BPB_Media byte value in its low 8 bits, and all other bits are set to 1. For example, if the BPB_Media value
2008-05-27 21:21:00
690
原创 FAT file system-BAD CLUSTER mark
The “BAD CLUSTER” value is 0x0FF7 for FAT12, 0xFFF7 for FAT16, and 0x0FFFFFF7 for FAT32. Also lost clusters—clusters that appear to be allocated because they contai
2008-05-27 21:20:00
503
原创 FAT file system-EOC mark
has a first cluster number of 0 placed in its directory entry. This cluster location in the FAT (see earlier computation of ThisFATSecNum and ThisFATEntOffset) cont
2008-05-27 21:15:00
503
原创 FAT file system-Note
A FAT32 FAT entry is actually only a 28-bit entry. The high 4 bits of a FAT32 FAT entry are reserved. beca
2008-05-27 21:13:00
603
原创 FAT file system-read&set
read sector number ThisFATSecNum (remember this is a sector number relative to sector 0 of the FAT volume). Assume this is read into an 8-bit byte array named SecBuff
2008-05-27 21:10:00
609
原创 FAT file system-Given any valid cluster number N, where in the FAT(s) is the entry for that cluster number?
For FAT16 and FAT32:If(BPB_FATSz16 != 0) FATSz = BPB_FATSz16; Else FATSz = BPB_FATSz32; If(FATType == FAT16) FATOffset = N * 2;Else if (FATType == FAT32)
2008-05-27 21:06:00
448
原创 FAT file system-FAT Type Determination
① root directory sectors:RootDirSectors = ((BPB_RootEntCnt * 32) + (BPB_BytsPerSec – 1)) / BPB_BytsPerSec;/* For FAT32,BPB_RootEntCnt == 0 ,so RootDirS
2008-05-27 21:04:00
518
原创 FAT file system
0 –Reserved Region 1 – FAT Region 2 – Root Directory Region (doesn’t exist on FAT32 volumes)
2008-05-27 20:57:00
720
转载 Bash 示例,第三部分 ebuild 系统探秘
from http://www-128.ibm.com/developerworks/cn/linux/shell/bash/bash-3/index.html 探讨 ebuild 系统
2008-03-06 12:28:00
572
转载 Bash 示例,第三部分 ebuild 系统探秘
from http://www-128.ibm.com/developerworks/cn/linux/shell/bash/bash-3/index.html 探讨 ebuild 系统
2008-03-06 12:27:00
560
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅