奇瑞瑞虎7反光镜总成:启动出现:Unable to handle kernel NULL pointer dereference at virtual address 00000000

来源:百度文库 编辑:偶看新闻 时间:2024/04/28 15:38:46
启动出现:Unable to handle kernel NULL pointer dereference at virtual address 00000000 (2012-02-03 13:10) 标签: address 分类: Linux内核调试启动过程中,出现问题:
      问题:Unable to handle kernel NULL pointer dereference at virtual address 00000000
          pgd = c0004000
          [00000000] *pgd=00000000
          Internal error: Oops: 80000005 [#1]
          last sysfs file:
          Modules linked in:
          CPU: 0    Not tainted  (2.6.36.1 #20)
          PC is at 0x0
          LR is at s3c_gpio_setpull+0x80/0x8c
      解决:参考网址:http://blog.csdn.net/ExclusivePig/archive/2010/10/24/5961869.aspx
          将static inline int s3c_gpio_do_setpull函数修改为以下内容:
          static inline int s3c_gpio_do_setpull(struct s3c_gpio_chip *chip,
                      unsigned int off, s3c_gpio_pull_t pull)
          {
              if(NULL != chip->config->set_pull)
                  return (chip->config->set_pull)(chip, off, pull);
              else
                  return EINVAL;
          }


==========================================================================================【原创】关于s3c24XX系列2.6.35.7内核移植挂在s3c_gpio_setpull的解决方法 分类: 技术 2010-10-24 10:11 456人阅读 评论(0) 收藏 举报

google到一篇文章是说将s3c_gpio_setpull函数置空,直接返回EINVAL

 

我觉得这样太粗暴了,于是研究了上下文代码,发现其实是挂在s3c_gpio_do_setpull函数中,

 

也就是这句话里:

    return (chip->config->set_pull)(chip, off, pull);

 

其中参数chip是在gpiolib.c中定义的,原型是s3c24xx_gpios这样一个全局的结构体。

 

在结构体赋值的分析中,发现chip->config->set_pull也有可能为NULL,

 

OK,解决方法出现了,

 

只要修改为:

 

static inline int s3c_gpio_do_setpull(struct s3c_gpio_chip *chip,
                      unsigned int off, s3c_gpio_pull_t pull)
{

    if(NULL != chip->config->set_pull)
        return (chip->config->set_pull)(chip, off, pull);

    else

        return EINVAL;

}

 

内核运行正常。。。

daemon安装出现unable to extract installer 出现Unable to launch Direct3D错误怎么解决 在VC里出现 Unable to load development DLL 我启动时之沙的时候会出现:unable to find frince BF 不知该怎么办,请各位高手帮个忙,小弟先谢谢了 unable to hear 安装AMAI_TFT是出现”Unable to locate the target to patch”是什么愿意啊? 安装AMAI_TFT是出现”Unable to locate the target to patch”是什么愿意啊? x-man出现Unable to initialize Direct3D,make sure hardware acceleration is set to full 在浩方启动魔兽时,它说unable to iniati z e unable to mount image.unable to access image file. 安装游戏时出现:Unable to Install InstallShield Scripting Run Time 为什么我在浩方上玩星际连接的时候点OK 就出现 Unable to join game. 在读取某文件时,经常出现蓝屏:“unable write to disk in drive c” 为什么我在浩方里玩星际出现Unable to join game ........... 换了版本还是进不起? 安装deamon时出现unable to extract installer,重新下载也没用 打开QQ幻想时出现错误:Unable to find or execute SynthCore11.EXE program 安装Dreamweaver时出现Setup was unable to upgrade the windows Installer 是什么问题啊 为什么运行程序时总出现“unable to open STDIO.H" 我在按装USB2.0时出现unable to drive usb id 是什么意思? 卸载了Rational Rose,再安装,出现1607: Unable to install InstallShield Scripting Runtime 错误 用AppLocale进明星志愿3出现"Unable to load GUI skin"?? 进行设置后,为什么有会出现“Unable to open input files'C0S.OBJ' 我怎么安装不了安装daemon_tools3。47虚拟光驱,老是出现unable to extract installer 的提示 不能上网ping 网关的时候出现unable to initialize windows sockets interface error code 0