自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

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

原创 Important structs in linux kernel

struct task_struct {/* these are hardcoded - don't touch */ long state; /* -1 unrunnable, 0 runnable, >0 stopped */ long counter; long priority; long signal; struct sigaction s

2014-12-21 10:57:34 268

linux-0.11

BIOS    0x7c00 is the memory address which BIOS loads MBR(Master Boot Record, a first sector in hdd/fdd) into.bootsect.s1) move 256 words from 0x7c00 to 0x9c0002) read setup (4 sectors)

2014-12-14 15:15:45 96

原创 Osless programming on mini2440--GPIO LED

1 @ file : led_on.S 2 @ date : 02-01-2013 3 @ author: asicer@live.cn 4 5 @ nLED_1 GPB5 6 @ nLED_2 GPB6 7 @ nLED_3 GPB7 8 @ nLED_4 GPB8 9 @ n means low value enable li

2013-02-01 13:08:53 1566

原创 Install linux from HDD/U-Disk into HDD/U-Disk

Following operation are all on Windows XP system1: install grub4dos2: put file "vmlinuz", "initrd.gz" and iso image on fat32 format file system3: reboot systemgrub> root (hd0, x) -- change x t

2013-01-14 15:47:22 398

原创 skyeye smdk2410

1: get latest version u-boot2: make smdk2410-config; make3: skyeye.confcpu:  arm920tmach: s3c2410xmem_bank: map=M, type=RW, addr=0x00000000, size=0x10000000 mem_bank: map=M, type=RW, add

2012-12-23 15:58:38 317

原创 classic programming book list

Points on CThe C ProgrammingC Traps and PitfallsProgramming PearlsExpert C ProgrammingLinux Device DriversLinux Kernel DevelopmentThe Art of Unix ProgrammingUnderstanding The L

2012-11-28 10:13:02 208

原创 u-boot of mini2440

[q] Goto shell of vivi Enter your selection: q Supervivi> load flash 0 uUSB host is

2012-11-24 11:47:35 375

原创 vim+ctags+cscope+taglist

vim plugins: project taglistctags:=>ctags -Rcscope:=>cscope -Rbkq=>vim :cs add cscope.out=>vim :TlistOpenkeymap: add below to vimrc """"""""""""" My cscope/vim key mapping

2012-07-20 09:55:31 351

原创 define macro printf

//for gcc:#ifdef DEBUG#define my_printf(fmt, args...) printf("[%s: %d]"fmt, __FUNCTION__, __LINE__, ##args)#else#define my_printf(fmt, args...)#endif//for vc:#ifdef DEBUG#define dbg_printf

2012-06-25 10:35:34 602

原创 ksh environment set

TERM="xterm"; export TERMset -o vi #"esc+\"autocompletionstty erase ^H #enable backspaceget up arrow key to recall previous commands in Korn shellset -o emacsalias __A=$(print '\0020') # ^P =

2012-03-05 10:42:10 280

原创 snake.java

package snake.test;import android.app.Activity;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.P

2011-12-09 10:41:35 309

原创 linux vimrc and bashrc set

#in vimrcset nuset tabstop=4set shiftwidth=4 set softtabstop=4set expandtabset cindentset autoindentmap pl :!perl %map py :!python %map TN :tabnew map tn :tabnext map sp :sp

2011-10-01 08:39:37 259

原创 AWK Notes

#print the x field of the y line:awk 'FNR == "'$y'" {print $"'$x'"}' file[asicer@localhost ~]$ var=item1; printf "item1\t\t4\nitem2\

2011-08-17 14:15:10 236

原创 sort (draft)

//All Rights Reserved #include #include #define swap(a,b) { \ (a) ^= (b); \ (b) ^= (a); \ (a) ^= (b); \}#de

2011-07-29 00:41:42 209

原创 Queues

to be continued

2011-07-25 05:14:10 297

原创 Stacks

to be continued

2011-07-25 05:13:30 210

原创 great online resource

online eecs course:http://www-inst.eecs.berkeley.edu/classes-eecs.htmlhttp://ocw.mit.edu/courses/electrical-engineering-and-computer-sci

2011-07-24 14:42:16 261

原创 collection of c interview questions

http://technical-interview.com/default.aspx//swap two variables without using a third variable//compiler dependenta^=b^=a^=b//only wor

2011-07-23 12:31:37 265

原创 string reverse

#include #include void string_reverse(char s[]){ int c, i, j; for (i=0, j=strlen(s)-1; i<j; i++, j--) { c = s[i]; s[i] = s[j];

2011-07-23 10:20:15 297

原创 bit operation

#include void bitprint(int num, int base){ if (num <= (base - 1)) printf("%d\n", num); else { bitprint(num/base, base); printf("

2011-07-23 10:16:37 218

原创 binaryTree (draft)

#include #include struct node{ int date; node *lchild, *rchild;};int getDepth(node *);int searchNode(node *);node *insertNode(nod

2011-07-22 10:19:28 206

原创 single linkList (draft)

//All Rights Reserved #include #include struct node{ int age; struct node *next; }; void printList(node *N); node *insertNode(node *, int); node *deleteNode(node *, int); int ge

2011-07-21 16:41:41 259

原创 endianness test

1 //All Rights Reserved 2 3 #include 4 5 int main() 6 { 7 int a=0x0001; 8 char *c=(char *)&a; 9 *c ? printf("little endian\n") : printf("big endian\n"); 10 r

2011-07-21 16:14:18 232

空空如也

空空如也

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

TA关注的人

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