uclinux很久前笔记11
来源:互联网 发布:二手软件app软件哪个好 编辑:程序博客网 时间:2024/06/05 19:56
【实现reboot命令】
在不修改时执行reboot的效果为:
/> reboot
Restarting system.
mm-armv.c 315
Reboot failed --System halted
在sourceinsight中搜索Reboot failed -- System halted得出的结果为:
---- Rebootfailed -- System halted Matches (1 in 1 files) ----
Process.c(linux-2.4.x\arch\armnommu\kernel): printk("Rebootfailed -- System halted\n");
void machine_restart(char* __unused){ /*Cleanand disable cache, and turn off interrupts*/ cpu_proc_fin(); /*Tellthe mm system that we are going to reboot - * we may need it to insert some 1:1 mappingsso that * soft boot works.*/ setup_mm_for_reboot(reboot_mode); /*Now call the architecture specific reboot code.*/ arch_reset(reboot_mode); /*Whoops- the architecture was unable to reboot. * Tell the user!*/ mdelay(1000); printk("Reboot failed -- System halted\n"); while(1);}
搜索arch_reset:
System.h (linux-2.4.x\include\asm-armnommu\arch-s3c44b0x):extern inline void arch_reset(charmode)
extern inline void arch_reset(char mode){ /*@todo: reset the hardware in some way */}
改为:
extern inline void arch_reset(char mode){ /*@todo: reset the hardware in some way */ void (*jump)(void); jump=(void (*)(void))0x0; jump();}这样一来在开发调试过程中要更新linux内核是就不用手动去按复位按键了。
0 0
- uclinux很久前笔记11
- uclinux很久前笔记1
- uclinux很久前笔记2
- uclinux很久前笔记3
- uclinux很久前笔记4
- uclinux很久前笔记5
- uclinux很久前笔记6
- uclinux很久前笔记7
- uclinux很久前笔记8
- uclinux很久前笔记9
- uclinux很久前笔记10
- uclinux很久前笔记12
- 很久很久前初学Java时的笔记--String操作
- 很久很久前初学Java时的笔记--内部类
- 很久很久前初学Java时的笔记--日期+集合
- 很久前Oracle的一些笔记_1-3
- 很久前Oracle的一些笔记_4-6
- 很久前Oracle的一些笔记_7-8
- linux命令行(2)---文件处理和权限管理命令
- g2048游戏3-android
- 计算机组成及其功能
- 大数
- 数字图像处理(1)- 透视变换
- uclinux很久前笔记11
- JsBridge最详细的解析,高版本webview的evaluateJavascript
- A100 正确使用递归和灵活使用if
- Hdu 5193 Go to movies Ⅱ(带删除数插入数的逆序数对,块状链表)
- OSGi - 第01章环境准备
- LibGdx文档译读(十三) AssetManager类
- python中__init__.py文件的作用
- Linux安装apue.3e(基于ubuntu12.0.4+centos6.8)
- uclinux很久前笔记12