02 2021 档案
摘要:x86的入口在arch/x86/boot/header.S,接下来我们将从BIOS开始介绍,直到Linux开始初始化。 BIOS 电源接通时,CPU的寄存器CS selector = 0xf000,CS base = 0xffff0000(此时CS = 0xfffff000),EIP = 0xfff
阅读全文
摘要:开个新坑。感觉自己的工程能力欠缺,很多实际应用中的细节也不是特别清楚。本次源码分析以Linux 4.17版本、x86系统为基础进行。 我们这次主要研究的Linux的源码目录结构如下图所示: 没有在图里列出的目录在计划内应该不会阅读。代码阅读按照系统启动顺序阅读,部分只在用户程序调用的代码阅读顺序不定
阅读全文
摘要:终于到专题七了。 HDU1166 敌兵布阵 思路:线段树模板题。 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> using namespace std; const
阅读全文
摘要:不知不觉已经刷到专题六了,但感觉进度还是有点慢了(*  ̄︿ ̄) POJ1251 Jungle Roads 思路:模板题。 #include <iostream> #include <algorithm> #include <stdio.h> using namespace std; const in
阅读全文
摘要:不想写实验,不想改paper,写点代码吧(;´д`)ゞ POJ2236 Wireless Network 思路:简单并查集。 #include<iostream> #include<cstdio> #include<cstring> using namespace std; const int IN
阅读全文

浙公网安备 33010602011771号