Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1134074
  • 博文数量: 141
  • 博客积分: 2853
  • 博客等级: 少校
  • 技术积分: 2266
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-04 12:03
文章分类

全部博文(141)

文章存档

2014年(3)

2013年(12)

2012年(126)

分类: LINUX

2012-04-10 22:04:46

for(i=0;i<4;i++)
{
s3c2410_gpio_cfgpin(gpio_table[i],gpio_cfg_table[i]);
s3c2410_gpio_setpin(gpio_table[i], 0);//没给端口初始化居然报错暂时没有深究
}

报错信息

 Unable to handle kernel paging request at virtual address 3affffd4
pgd = c3a08000
[3affffd4] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in: EmbedSky_gpio [last unloaded: EmbedSky_gpio]
CPU: 0    Not tainted  (2.6.30.4-EmbedSky #7)
PC is at s3c2410_gpio_setpin+0x1c/0x3c
LR is at EmbedSky_leds_ioctl+0x4c/0x60 [EmbedSky_gpio]
pc : []    lr : []    psr: 60000093
sp : c3a0ff08  ip : 3affffd0  fp : bef43b8c
r10: 00000004  r9 : c3a0e000  r8 : c0025f08
r7 : c3a06b60  r6 : 00000000  r5 : 00000004  r4 : 60000013
r3 : 60000093  r2 : 00000000  r1 : 00000001  r0 : 7fffffac
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: c000717f  Table: 33a08000  DAC: 00000015
Process led-player (pid: 429, stack limit = 0xc3a0e268)
Stack: (0xc3a0ff08 to 0xc3a10000)
ff00:                   00000000 bf00604c c3a06b60 c00983bc 00000003 c3a06b60 
ff20: 00000003 c00988b4 00000000 c007c594 000000bd 00000000 00000000 bef43b98 
ff40: 00000000 000000f7 c39e9b00 000003dc c3a09000 c009a368 c3a0ff80 ffffffff 
ff60: c39eb614 c396e9a0 00000003 00000004 00000000 c3a06b60 c0025f08 c3a0e000 
ff80: 00000000 c009893c 00000003 00000000 00000004 411e8480 00000000 412e8480 
ffa0: 00000036 c0025d60 411e8480 00000000 00000003 00000000 00000004 00000000 
ffc0: 411e8480 00000000 412e8480 00000036 00000000 00000000 40025000 bef43b8c 
ffe0: 00000000 bef43b78 000087bc 400f76ec 80000010 00000003 30437031 30437431 
[] (s3c2410_gpio_setpin+0x1c/0x3c) from [] (EmbedSky_leds_ioctl+0x4c/0x60 [EmbedSky_gpio])
[] (EmbedSky_leds_ioctl+0x4c/0x60 [EmbedSky_gpio]) from [] (vfs_ioctl+0x68/0x78)
[] (vfs_ioctl+0x68/0x78) from [] (do_vfs_ioctl+0x4cc/0x520)
[] (do_vfs_ioctl+0x4cc/0x520) from [] (sys_ioctl+0x34/0x50)
[] (sys_ioctl+0x34/0x50) from [] (ret_fast_syscall+0x0/0x2c)
Code: e121f003 e3c0c01f e1a0c0ac e28cc4fb (e59c3004) 
---[ end trace d0902a1037fb1d42 ]---
Segmentation fault

阅读(1671) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:select()函数以及FD_ZERO、FD_SET、FD_CLR、FD_ISSET

给主人留下些什么吧!~~