<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[arriod的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/arriod</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; arriod]]></copyright><item><title><![CDATA[u-boot FIT image介绍_转自“蜗窝科技”]]></title><link>https://blog.csdn.net/arriod/article/details/123254332</link><guid>https://blog.csdn.net/arriod/article/details/123254332</guid><author>arriod</author><pubDate>Thu, 03 Mar 2022 17:02:27 +0800</pubDate><description><![CDATA[转自：http://www.wowotech.net/u-boot/fit_image_overview.html

1. 前言

Linux kernel在ARM架构中引入设备树device tree（全称是flattened device tree，后续将会以FDT代称）的时候[1]，其实怀揣了一个Unify Kernel的梦想----同一个Image，可以支持多个不同的平台。随着新的ARM64架构将FDT列为必选项，并将和体系结构有关的代码剥离之后，这个梦想已经接近实现：


在编译linux ker]]></description><category></category></item><item><title><![CDATA[pkg-config工具， ld.so.conf文件， PKG_CONFIG_PATH环境变量]]></title><link>https://blog.csdn.net/arriod/article/details/8287675</link><guid>https://blog.csdn.net/arriod/article/details/8287675</guid><author>arriod</author><pubDate>Wed, 12 Dec 2012 17:55:23 +0800</pubDate><description><![CDATA[原文地址：www.91linux.com/html/article/program/cpp/20071207/8934.html 


一、编译和连接 

        一般来说，如果库的头文件不在 /usr/include 目录中，那么在编译的时候需要用 -I 参数指定其路径。由于同一个库在不同系统上可能位于不同的目录下，用户安装库的时候也可以将库安装在不同的目录下，所以即使使用同一]]></description><category></category></item><item><title><![CDATA[Android ，在争议中逃离 Linux 内核的 GPL 约束]]></title><link>https://blog.csdn.net/arriod/article/details/8260198</link><guid>https://blog.csdn.net/arriod/article/details/8260198</guid><author>arriod</author><pubDate>Wed, 05 Dec 2012 15:29:46 +0800</pubDate><description><![CDATA[转于:http://www.ifanr.com/92261
 
2012-5-28, 07:29 | 
shallon
 

为这个题材起名，我思考了许久，GPL 是著名的开放源代码许可协议，Linux 内核开源项目正是在 GPL 的庇佑之下，十多年来在服务器、PC 端以及各种嵌入式设备上成绩斐然，是当之无愧的当代计算机软件的基石，说 GPL 代表着 Linux 的开源精神，毫不为过。]]></description><category></category></item><item><title><![CDATA[x86虚拟机设计之动态翻译块]]></title><link>https://blog.csdn.net/arriod/article/details/8140823</link><guid>https://blog.csdn.net/arriod/article/details/8140823</guid><author>arriod</author><pubDate>Fri, 02 Nov 2012 14:54:18 +0800</pubDate><description><![CDATA[翻译块的结束条件：
1、跳转指令
2、软件中断指令
3、实模式和保护模式切换的指令
4、保护模式下段selector改变的时候
 
优化：
1、消除条件3
      如果指令在保护模式和实模式下有不同的操作，这些不同的区分需要放到tb内处理，而不是tb外。
2、消除条件4
      需要将cs32、ss32的处理放到tb内，而不是tb外。]]></description><category></category></item><item><title><![CDATA[x86虚拟机设计之条件码生成]]></title><link>https://blog.csdn.net/arriod/article/details/8127417</link><guid>https://blog.csdn.net/arriod/article/details/8127417</guid><author>arriod</author><pubDate>Tue, 30 Oct 2012 11:39:35 +0800</pubDate><description><![CDATA[x86的指令集中有很多指令是自动生成条件码的,它们保存在EFLAGS寄存器中。完全的模拟这些条件码是十分费时的，还好我们并不常用到它们，所以可以采用惰性计算。
 
一、惰性计算
       惰性计算就是在遇到产生条件码的指令时并不计算生成这些条件码，只保存生成条件码所必需的条件，在遇到需要使用条件码的指令时才会生成条件码。
       1、需要保存的记录
             o]]></description><category></category></item><item><title><![CDATA[x86虚拟机设计之自引用和自修改代码]]></title><link>https://blog.csdn.net/arriod/article/details/8089476</link><guid>https://blog.csdn.net/arriod/article/details/8089476</guid><author>arriod</author><pubDate>Fri, 19 Oct 2012 13:49:20 +0800</pubDate><description><![CDATA[一、关于自修改代码
基本思路：
1、将源代码区域加上写保护,当出现自修改代码时,就会触发一个异常。软件截获此异常，并清空全部cache或清空出现异常位置的cache。
 2、截获所有的写内存的地方，查看是否写了保存了的tb，如果写了，就释放掉这个tb。


问题：
1、如何在源代码区域加上写保护？
      我们面对的是物理地址，而平时虚拟机操作的却是虚拟地址。
2、如何在引起]]></description><category></category></item><item><title><![CDATA[x86虚拟机设计之CISC指令解析]]></title><link>https://blog.csdn.net/arriod/article/details/8073094</link><guid>https://blog.csdn.net/arriod/article/details/8073094</guid><author>arriod</author><pubDate>Mon, 15 Oct 2012 15:11:57 +0800</pubDate><description><![CDATA[一、指令分类
CISC指令集的长度不是固定的，可以按照指令的复杂度对代码进行分类。
 
针对x86指令集，有些短指令的翻译十分简单（比如不需要解析Ev等字段），可以在解析之后迅速翻译，可以按照以下规则进行分类：
1、有没有前缀字节。
2、单字节指令。
3、简单的操作码，比如仅仅是寄存器操作。
4、复杂的指令，多操作码可以对相似的操作进行归类。
 
我觉得switch case是比]]></description><category></category></item><item><title><![CDATA[用qemu-system-arm搭建arm11环境]]></title><link>https://blog.csdn.net/arriod/article/details/8000329</link><guid>https://blog.csdn.net/arriod/article/details/8000329</guid><author>arriod</author><pubDate>Thu, 20 Sep 2012 15:19:30 +0800</pubDate><description><![CDATA[http://darkofday.wikispaces.com/%E5%B5%8C%E5%85%A5%E5%BC%8F

用qemu-system-arm搭建arm11环境

以下方法将在ubuntu 10.04主机上，利用qemu-system-arm安装一个arm11的操作系统。系统采用nfs方式挂载文件系统，可以用来模拟arm11的运行环境，学习arm11汇编。
安装qemu-sy]]></description><category></category></item><item><title><![CDATA[[转]C标准库中的setjmp与longjmp]]></title><link>https://blog.csdn.net/arriod/article/details/7948948</link><guid>https://blog.csdn.net/arriod/article/details/7948948</guid><author>arriod</author><pubDate>Thu, 06 Sep 2012 08:05:49 +0800</pubDate><description><![CDATA[在C标准库中有一对非常有趣的函数setjmp()函数与longjmp()函数,用来实现代替goto实现一些非常重要的功能，如异常处理。C语言中，标准库函数setjmp和longjmp形成了结构化异常工具的基础。简单的说即setjmp实例化异常处理程序，而longjmp产生异常。
先介绍setjmp
int setjmp(jmp_buf envbuf)
宏函数setjmp()在缓冲区envbu]]></description><category></category></item><item><title><![CDATA[CFS进程调度]]></title><link>https://blog.csdn.net/arriod/article/details/7033895</link><guid>https://blog.csdn.net/arriod/article/details/7033895</guid><author>arriod</author><pubDate>Fri, 02 Dec 2011 10:14:35 +0800</pubDate><description><![CDATA[一、概述
linux 2.6.23中采用了一个全新的调度策略CFS（Completely Fair Scheduler）来处理非实时进程。

二、主要数据结构
1.为了和原先的实时策略更好的融合，linux在实现CFS之余，还将内核的调度策略模块化，添加了新的结构体sched_class用于管理不同的调度器。

2.CFS没有用传统的调度器中时间片的概念，而是使用了新的结构体sched_entit]]></description><category></category></item><item><title><![CDATA[为什么per_cpu_ptr写那么变态on UP]]></title><link>https://blog.csdn.net/arriod/article/details/7009329</link><guid>https://blog.csdn.net/arriod/article/details/7009329</guid><author>arriod</author><pubDate>Thu, 24 Nov 2011 19:29:41 +0800</pubDate><description><![CDATA[add sanity check for percpu accessors on UP.
This removes lots of sparse warnings.


Signed-off-by: Namhyung Kim 
---
 include/asm-generic/percpu.h |   12 +++++++++---
 include/linux/percpu.h]]></description><category></category></item><item><title><![CDATA[利用ddd和qemu调试arm-linux]]></title><link>https://blog.csdn.net/arriod/article/details/7003662</link><guid>https://blog.csdn.net/arriod/article/details/7003662</guid><author>arriod</author><pubDate>Wed, 23 Nov 2011 12:30:42 +0800</pubDate><description><![CDATA[1.arm-linux内核在编译的时候需要添加: Kernel hacking->Compile the kernel with debug info
2.qemu-system-arm -M versatilepb -kernel arch/arm/boot/zImage -s -S
3.ddd --debugger arm-none-linux-gnueabi-gdb

4.gdb>f]]></description><category></category></item><item><title><![CDATA[gfp_zone函数]]></title><link>https://blog.csdn.net/arriod/article/details/6936579</link><guid>https://blog.csdn.net/arriod/article/details/6936579</guid><author>arriod</author><pubDate>Fri, 04 Nov 2011 17:24:02 +0800</pubDate><description><![CDATA[函数很简单根据参数flags返回gfp_zone的类型。
static inline enum zone_type gfp_zone(gfp_t flags)
{
#ifdef CONFIG_ZONE_DMA
 if (flags & __GFP_DMA)
  return ZONE_DMA;
#endif
#ifdef CONFIG_ZONE_DMA32
 if (flags &]]></description><category></category></item><item><title><![CDATA[x86实模式Memory Map和Port Address Assignments]]></title><link>https://blog.csdn.net/arriod/article/details/6330344</link><guid>https://blog.csdn.net/arriod/article/details/6330344</guid><author>arriod</author><pubDate>Mon, 18 Apr 2011 09:17:00 +0800</pubDate><description><![CDATA[<br />转自：http://hi.baidu.com/xshaonan/blog/item/443c8b091ff8bbc53bc763b7.html<br /> <br />General x86 Real Mode Memory Map: 0x00000000 - 0x000003FF
 - Real Mode Interrupt Vector Table 0x00000400 - 0x000004FF
 - BIOS Data Area 0x00000500 - 0x00007BFF
 - ]]></description><category></category></item><item><title><![CDATA[自由软件许可证GPL]]></title><link>https://blog.csdn.net/arriod/article/details/6261588</link><guid>https://blog.csdn.net/arriod/article/details/6261588</guid><author>arriod</author><pubDate>Sat, 19 Mar 2011 19:07:00 +0800</pubDate><description><![CDATA[<br />作者： 阮一峰<br />日期： 2004年6月20日<br />自从版权制度问世，大多数人就形成了一种观念：只要是正版软件，就一定会收费。<br />如果一种正版软件可以无限制的免费使用，甚至还允许你复制和出售，不少人就会产生怀疑：难道世界上真的有免费的午餐？如果不收费，程序员靠什么活着呢？<br />没错，世界上就是有免费的午餐，那就是自由软件。<br />所谓"自由软件"，就是让你可以免费使用的正版软件，更严格地说，就是使用以GPL为代表的开源许可证的软件。只要一个软件的作者为自己的作品，]]></description><category></category></item><item><title><![CDATA[为什么GPL是更好的开源许可证?]]></title><link>https://blog.csdn.net/arriod/article/details/6261445</link><guid>https://blog.csdn.net/arriod/article/details/6261445</guid><author>arriod</author><pubDate>Sat, 19 Mar 2011 17:26:00 +0800</pubDate><description><![CDATA[作者： 阮一峰日期： 2010年2月27日1.让我从一件新闻讲起。2009年，计算机业界发生了一件大事：甲骨文公司以74亿美元收购SUN公司。消息宣布后，有一个人坚决反对这笔交易。他叫Michael Widenius
，是数据库软件MySQL
的主要创始人。他为什么要反对呢？因为MySQL现在归SUN公司所有，一旦收购成功，就将属于甲骨文公司所有。但是，后者的主要产品是Oracle数据库，与MySQL是竞争关系。所以，甲骨文公司不可能扶持MySQL的后继开发，甚至有可能杀死MySQL。Michael W]]></description><category></category></item><item><title><![CDATA[x86硬件编程资料]]></title><link>https://blog.csdn.net/arriod/article/details/6246343</link><guid>https://blog.csdn.net/arriod/article/details/6246343</guid><author>arriod</author><pubDate>Sun, 13 Mar 2011 14:37:00 +0800</pubDate><description><![CDATA[1.vga
     http://www.osdever.net./FreeVGA/vga/vga.htm
     http://www.mcamafia.de/pdf/ibm_vgaxga_trm2.pdf

 
2.ide
     http://en.wikipedia.org/wiki/Parallel_ATA
     http://eecs.wsu.edu/~cs46]]></description><category></category></item><item><title><![CDATA[ubuntu下使用qemu-arm-static进入chroot编译环境]]></title><link>https://blog.csdn.net/arriod/article/details/5837286</link><guid>https://blog.csdn.net/arriod/article/details/5837286</guid><author>arriod</author><pubDate>Wed, 25 Aug 2010 13:52:00 +0800</pubDate><description><![CDATA[转载请注明出处：http://blog.csdn.net/arriod/archive/2010/08/25/5837286.aspx
目的是在arm下建立一套完整的编译环境，安装完编译环境后，如果一直使用qemu来模拟整个arm系统的话，速度会很慢。由于qemu还可以模拟ar]]></description><category></category></item><item><title><![CDATA[搭建基于busybox和qemu的arm-linux系统]]></title><link>https://blog.csdn.net/arriod/article/details/5826373</link><guid>https://blog.csdn.net/arriod/article/details/5826373</guid><author>arriod</author><pubDate>Fri, 20 Aug 2010 13:44:00 +0800</pubDate><description><![CDATA[转载请注明出处：http://writeblog.csdn.net/PostEdit.aspx?entryId=5826373
 
一、系统版本选择
    交叉编译器版本4.4.0
    内核版本2.6.30.8
    busybox版本1.16.2

二、内核编译
    修改Makefile， ARCH=arm, CROSS_COMPILE=arm-eabi-。]]></description><category></category></item><item><title><![CDATA[switch_to]]></title><link>https://blog.csdn.net/arriod/article/details/5826252</link><guid>https://blog.csdn.net/arriod/article/details/5826252</guid><author>arriod</author><pubDate>Fri, 20 Aug 2010 12:45:00 +0800</pubDate><description><![CDATA[<br />
	
	
	
	
	<!--
		@page { margin: 2cm }
		P { margin-bottom: 0.21cm }
	-->
<br />

理论部分请参考《深入理解Linux

内核》第三章。<br />1

．switch_to

宏：<br />#define
switch_to(prev,next,last)					/<br />do
{									/<br />	last
= __switch_to(prev,tas]]></description><category></category></item></channel></rss>