CPU Rings, Privilege, and Protection 获取链接 Facebook X Pinterest 电子邮件 其他应用 四月 04, 2010 很不错的文章:http://blog.csdn.net/drshenlei/archive/2009/06/12/4265101.aspx 英文的博客出处:http://duartes.org/gustavo/blog/ 讲述了CPU与操作系统共同构筑保护模式的原理。 获取链接 Facebook X Pinterest 电子邮件 其他应用 评论
Linux/ARM Page Table Entry 属性设置分析 六月 11, 2012 注:该博文写的比较凌乱,需要以后再修改。 Linux 的页表项总体可以划分为两部分,一部分是物理映射地址,另一部分是对物理地址对应的访问属性。在Linux/ARM的Kernel中,为各式各样的内存属性与定义了一下条目 : 198 static struct mem_type mem_types[] = { 199 [MT_DEVICE] = { /* Strongly ordered / ARMv6 shared device */ 200 .prot_pte = PROT_PTE_DEVICE | L_PTE_MT_DEV_SHARED | 201 L_PTE_SHARED, 202 .prot_l1 = PMD_TYPE_TABLE, 203 .prot_sect = PROT_SECT_DEVICE | PMD_SECT_S, 204 .domain = DOMAIN_IO, 205 ... 阅读全文
提交了30次才AC ---【附】POJ 2488解题报告 五月 08, 2008 NND,这道题目,竟然提交了30次,搞的我晕过去了都!花费了将近12个小时!! 感一下,叹一声!如今的ACM,不仅锻炼编程,还锻炼了心理承受能力!! 1、注意格式,后面有一个空行 2、注意输出的时候的字典序--什么叫字典序,要弄清楚 3、注意国际象棋的棋盘-- 横的是字母,竖的是数字-- 一定要按照这个格式,否则即使是答案对,也WA 有26次,全部栽在第3点上 3次栽在第二点上 1次栽在第一点上 PS:因为是字典序,所以,可以肯定只需要从(1,1)开始即可。不需要注意那句话:start at any position of the chessboard. Source Code Problem: 2488 User: omycle Memory: 192K Time: 360MS Language: C++ Result: Accepted Source Code #include <iostream> #include <string> using namespace std ; bool ok = false ; int col = 0 ; int row = 0 ; int zoufa [ 8 ][ 2 ]= {{ - 2 ,- 1 } , { - 2 , 1 } , { - 1 ,- 2 } , { - 1 , 2 } , { 1 ,- 2 } , { 1 , 2 } , { 2 ,- 1 } , { 2 , 1 }} ; // int flag [ 50 ][ 50 ]; //第0行的,第零列的全不要 typedef struct { int x ; int y ; } Step ; Step step [ 100 ]; //记录路径呀 Step step_c [ 100 ]; int Count = 0 ; void print ( int n ); //数组比较函数 bool cmpint () { int i = 0 ; while ( i < col * row ) { if ( step_c [ i ]. x < step [ i ]. x ) return false ; //不用 if ( step_c [ i ]. y < step [ i ]... 阅读全文
评论
发表评论