【问题描述】我本来有ubuntu和win8双系统,ubuntu引导系统启动,后来重装了win8,再使用ubuntu系统盘对grub重建恢复系统启动引导文件,却发现ubuntu下无法挂载ntfs了。【解决办法】在网上搜了一个办法,感谢http://blog.csdn.net/sishuiliunian...
分类:
其他好文 时间:
2014-05-09 13:47:09
阅读次数:
315
转载:http://www.ibm.com/developerworks/cn/linux/l-gcc-hacks/?S_TACT=105AGX52&S_CMP=tec-csdnLinux
内核中的 GCC 特性了解用于 C 语言的 GCC 扩展Linux? 内核使用 GNU Compiler Co...
分类:
系统相关 时间:
2014-05-09 10:05:40
阅读次数:
596
linux内核中的list太好用了,可惜VC编译器不支持
typeof关键字,将linux内核中的list直接移植过来不能用修改所有与typeof相关的代码后,终于可以勉强在VC下运行起来了,但是还不完美,list_for_each_entry和list_for_each_entry_safe需要增...
分类:
其他好文 时间:
2014-05-09 08:57:19
阅读次数:
603
arch/arm/kernel/process.c实现pm_power_off=关机函数参考board-omap3touchbook.c文件中pm_power_off=omap3_touchbook_poweroff;staticvoidomap3_touchbook_poweroff(void)
{
intpwr_off=TB_KILL_POWER_GPIO;
if(gpio_request_one(pwr_off,GPIOF_OUT_INIT_LOW,"DVIreset")<0..
分类:
系统相关 时间:
2014-05-09 07:03:00
阅读次数:
470
sys.c 代码分析
setregid
/*
* This is done BSD-style, with no consideration of the saved gid, except
* that if you set the effective gid, it sets the saved gid too. This
* makes it possib...
分类:
系统相关 时间:
2014-05-09 02:13:12
阅读次数:
621
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
测试程序:
#include
#include
struct dev
{
int a;
char b;
float c;
};
struct dev devs[]=
{
{
1,'a',7.0,
},
{
1,'a',7.0,
},
{
...
分类:
系统相关 时间:
2014-05-09 02:10:16
阅读次数:
494
chapter 8 内核代码
8.1.1中断处理程序
traps.c
#define get_seg_byte(seg,addr) ({ \ //取seg中addr处1byte
register char __res; __asm__("push %%fs;mov %%ax,%%fs;movb %%fs:%2,%%al;pop %%fs" ...
分类:
系统相关 时间:
2014-05-09 01:48:26
阅读次数:
418
vsprintf.c 代码笔记
你
/*
* linux/kernel/vsprintf.c
*
* (C) 1991 Linus Torvalds
*/
/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
/*
* Wirzenius wrote this portably, Torvalds fucked...
分类:
系统相关 时间:
2014-05-09 01:38:20
阅读次数:
480
最近一直在看0.12版本的内核,一直想实现一个简单的多任务内核,发现还真得先了解linux操作系统的启动过程。
1.BIOS
开机程序被写入ROM当中,计算机通电之后的第一件事就是读取它。
这块芯片里的程序叫做基本输入输出系统,简称BIOS
1.1硬件自检
检查计算机硬件能否满足运行的基本条件,这叫做硬件自检
1.2启动顺序
硬件自检完成之后,BIOS就把控制权转交给下一阶段的启动程...
分类:
系统相关 时间:
2014-05-09 00:58:10
阅读次数:
486
(转自:http://blog.csdn.net/weiren2006/article/details/7443362)让软件在系统启动时自动运行,可通过修改注册表实现。在\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ru...