自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Peter Chen的专栏

专注于Linux内核与驱动

  • 博客(14)
  • 收藏
  • 关注

原创 Linux Kernel API (2.6)

For UP system #protect share dataspin_lock/spin_unlock: protect the data during process context(and only at process context), and make sure your code bewteen lock/unlock is fast enough.There may

2010-02-26 09:39:00 591

原创 Kernel Preempt

在CONFIG_PREEMPT打开的情况下:#explicit preempt:Call schedule()#Implicit preempt1. The kernel return from interrupt2. The kernel return from the code that preemption is disabled.How to adjust the

2010-02-26 09:35:00 487

原创 git usage

# set your name: git config --gloabal user.name "your name"git config --global user.email "your_email@gmail.com"#download the git code basegit clone url //clean non-git manage

2010-02-26 09:21:00 585

原创 arm的little endian示例

arm is little-endian for both image and memory, take u-boot.bin as an example:hexer u-boot.bin00000000:  12 00 00 ea 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  ................00000010:  14 f0 9f e

2010-02-26 09:18:00 669

原创 RealViewICE的使用

# How to install realview ICE at ubuntu 8.04? 0. Get RVDS4.01. Make sure some of the files at RVDS4.0 having write/execution attribute(If the attribute is differ with CDs)2. execute setuplinux.

2010-02-25 09:39:00 787

原创 arm汇编相关

#cmpRn - Rm(operand) #tstlogical AND #LDR用法(摘自ARM嵌入式系统开发一书)数据                        基址寄存器                示例mem[base+offset]  基址寄存器加上偏移    ldr r0,[r1,#offset]!mem[base+offset]  不变

2010-02-25 09:35:00 672

原创 工具软件的使用

#install *.debsudo dpkg -i *.deb  

2010-02-25 09:26:00 300

原创 svn使用技巧

1. Add obj file: add flag --no-ignore 2. delete the .svnfind . -name .svn -type d -print | xargs rm -fr 3. How to rollback to old svn versionsvn merge -rHEAD:144  URL/xxx.c xxx.c 4. ho

2010-02-24 10:04:00 374

转载 用git管理android patch

在kernelnewbies@nl.linux.org 问的问题, xiangfu@sharism.cc 给我的如下答复:1. since the kernel use "git". you can use different branch to maintain the kernel.  then cherry-pick to your local upstream branch

2010-02-24 09:56:00 952

原创 vim技巧

1. 在vim中使用shell命令:在命令模式时, 每个shell命令前加!如: !ls 2. 替换文本:replace test: :%s/s1/s2/greplace test: :%s/s1/s2/cg (comfirm before replace) 3. press ">", repeat last operation 4. comment mut

2010-02-24 09:55:00 442

原创 .vimrc

set icset cindentsyntax onset hlsearch" search incrementset incsearchset nu"undo for all file buffer filesset hid "set the number of lines to be remember

2010-02-24 09:54:00 360

原创 vim plugins

cscope_maps.vim cecscope.vimvcscommand.vim vcssvk.vim vcscvs.vim vcssvn.vim vcsgit.vim (版本控制)vimim.vim (中文输入)minibufexpl.vimtaglist.vimsudo apt-get install ctag

2010-02-24 09:51:00 780

原创 在linux内核里有关共享中断的使用

以Linux2.6.32 arm内核为例: 注册:一般要使用中断,会在初始化函数或probe函数里调用request_irq申请中断, 如果是共享中断(两个IO共享一个物理中断号),要加上标志IRQF_SHARED调用关系为: request_irq->request_threaded_irq->__setup_irq, 在32的内核里如果你申请的中断是IRQF_SHARED|IR

2010-02-12 14:44:00 2790 1

原创 在系统初始化过程中始能终端串口输出

因为要移植kgdb, 需要串口在系统初始化的过程中就能使用,而以前的代码串口终端打印要到串口驱动初始化完成后才能生效.所以决定把在init/main.c里start_kernel的console_init给用起来,这样kgdb也可以用,调试串口驱动前的代码也可以用.下面是一些要点:1. console_init会执行放在*(.con_initcall.init)段里的代码,而conso

2010-02-04 09:55:00 801

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除