当前位置: 技术问答>linux和unix
Unhandled fault: alignment exception (93) at 0x00000001
来源: 互联网 发布时间:2015-09-19
本文导语: 用的是嵌入式linux,添加了一个字符设备驱动,测试驱动时候就出现如下的错误提示: Unhandled fault: alignment exception (93) at 0x00000001 fault-common.c(97): start_code=0xf40040, start_stack=0xf4ff94) Internal error: Oops: 0 CPU: 0 pc : [...
用的是嵌入式linux,添加了一个字符设备驱动,测试驱动时候就出现如下的错误提示:
Unhandled fault: alignment exception (93) at 0x00000001
fault-common.c(97): start_code=0xf40040, start_stack=0xf4ff94)
Internal error: Oops: 0
CPU: 0
pc : [] lr : [] Not tainted
sp : 00fbbf74 ip : 00000001 fp : 00fbbf80
r10: 00f45f44 r9 : 00000003 r8 : 00f4ff44
r7 : 00fba000 r6 : fffffff7 r5 : 00f4ff44 r4 : 00000005
r3 : 003e163c r2 : 20000013 r1 : 20000093 r0 : 00000003
Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment kernel
Control: 0
Process testsd (pid: 45, stackpage=00fbb000)
Stack:
00fbbf60: 0002fc44 00030c8c 20000093 ffffffff 00fbbfac 00fbbf84 0002fc
44
00fbbf80: 00030c5c 000152f0 00015138 00000000 00f4ff44 00000003 00fba000 00014b
40
00fbbfa0: 00000000 00fbbfb0 000149a0 0002fc34 00000000 000151d4 00000003 00f4ff
44
00fbbfc0: 00000005 00000000 00000000 00f4ff44 00000003 00000001 00f4ffa0 000000
00
00fbbfe0: 00f45f44 00f4ff40 00f4ff44 00f4ff30 00f40148 00f41e88 60000010 000000
03
Backtrace:
Function entered at [] from []
Function entered at [] from []
r8 = 00014B40 r7 = 00FBA000 r6 = 00000003 r5 = 00F4FF44
r4 = 00000000
Code: e3821080 e121f001 (e59c3014) e2833001 e58c3014
Unhandled fault: alignment exception (13) at 0x00000001
fault-common.c(97): start_code=0xe5810000, start_stack=0xe3a06060)
Internal error: Oops: 0
CPU: 0
pc : [] lr : [] Not tainted
sp : 00fbbe88 ip : 00fbbea4 fp : 00fbbea0
r10: 003e163c r9 : 001e04ec r8 : 00000000
r7 : 00000001 r6 : 00000003 r5 : 003e1520 r4 : 00000001
r3 : 003e1648 r2 : 00000000 r1 : 003e1520 r0 : 00000001
Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: 0
Process testsd (pid: 45, stackpage=00fbb000)
Stack:
00fbbe60: 0001e1d8 0002f7
74
00fbbe80: 20000013 ffffffff 00000001 003e1520 00000003 00fbbecc 00fbbea4 0001e1
d8
00fbbea0: 0002f774 003f52a0 00fbbf2c 00fba000 00fba000 0000000b 20000093 000d36
bc
00fbbec0: 00fbbedc 00fbbed0 0001e9c8 0001e14c 00fbbef4 00fbbee0 00018aac 0001e8
ec
00fbbee0: 00fba000 00000001 00fbbf04 00fbbef8 00018ae0 000189f0 00fbbf28 00fbbf
08
00fbbf00: 00019af8 00018ad4 e59c3014 00fbbf60 fffffff7 00fba000 00f4ff44 00fbbf
80
00fbbf20: 00fbbf2c 000146a0 00019a68 00000003 20000093 20000013 003e163c 000000
05
00fbbf40: 00f4ff44 fffffff7 00fba000 00f4ff44 00000003 00f45f44 00fbbf80 000000
01
00fbbf60: 00fbbf74 0002fc44 00030c8c 20000093 ffffffff 00fbbfac 00fbbf84 0002fc
44
00fbbf80: 00030c5c 000152f0 00015138 00000000 00f4ff44 00000003 00fba000 00014b
40
00fbbfa0: 00000000 00fbbfb0 000149a0 0002fc34 00000000 000151d4 00000003 00f4ff
44
00fbbfc0: 00000005 00000000 00000000 00f4ff44 00000003 00000001 00f4ffa0 000000
00
00fbbfe0: 00f45f44 00f4ff40 00f4ff44 00f4ff30 00f40148 00f41e88 60000010 000000
03
Backtrace:
Function entered at [] from []
r6 = 00000003 r5 = 003E1520 r4 = 00000001
Function entered at [] from []
Function entered at [] from []
Function entered at [] from []
r5 = 00000001 r4 = 00FBA000
Function entered at [] from []
Function entered at [] from []
r8 = 00F4FF44 r7 = 00FBA000 r6 = FFFFFFF7 r5 = 00FBBF60
r4 = E59C3014
Function entered at [] from []
Function entered at [] from []
r8 = 00014B40 r7 = 00FBA000 r6 = 00000003 r5 = 00F4FF44
r4 = 00000000
Code: e24cb004 e1a04000 (e5945014) e1a06001 e3550000
pid 45: failed 11
/usr>
Unhandled fault: alignment exception (93) at 0x00000001
fault-common.c(97): start_code=0xf40040, start_stack=0xf4ff94)
Internal error: Oops: 0
CPU: 0
pc : [] lr : [] Not tainted
sp : 00fbbf74 ip : 00000001 fp : 00fbbf80
r10: 00f45f44 r9 : 00000003 r8 : 00f4ff44
r7 : 00fba000 r6 : fffffff7 r5 : 00f4ff44 r4 : 00000005
r3 : 003e163c r2 : 20000013 r1 : 20000093 r0 : 00000003
Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment kernel
Control: 0
Process testsd (pid: 45, stackpage=00fbb000)
Stack:
00fbbf60: 0002fc44 00030c8c 20000093 ffffffff 00fbbfac 00fbbf84 0002fc
44
00fbbf80: 00030c5c 000152f0 00015138 00000000 00f4ff44 00000003 00fba000 00014b
40
00fbbfa0: 00000000 00fbbfb0 000149a0 0002fc34 00000000 000151d4 00000003 00f4ff
44
00fbbfc0: 00000005 00000000 00000000 00f4ff44 00000003 00000001 00f4ffa0 000000
00
00fbbfe0: 00f45f44 00f4ff40 00f4ff44 00f4ff30 00f40148 00f41e88 60000010 000000
03
Backtrace:
Function entered at [] from []
Function entered at [] from []
r8 = 00014B40 r7 = 00FBA000 r6 = 00000003 r5 = 00F4FF44
r4 = 00000000
Code: e3821080 e121f001 (e59c3014) e2833001 e58c3014
Unhandled fault: alignment exception (13) at 0x00000001
fault-common.c(97): start_code=0xe5810000, start_stack=0xe3a06060)
Internal error: Oops: 0
CPU: 0
pc : [] lr : [] Not tainted
sp : 00fbbe88 ip : 00fbbea4 fp : 00fbbea0
r10: 003e163c r9 : 001e04ec r8 : 00000000
r7 : 00000001 r6 : 00000003 r5 : 003e1520 r4 : 00000001
r3 : 003e1648 r2 : 00000000 r1 : 003e1520 r0 : 00000001
Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: 0
Process testsd (pid: 45, stackpage=00fbb000)
Stack:
00fbbe60: 0001e1d8 0002f7
74
00fbbe80: 20000013 ffffffff 00000001 003e1520 00000003 00fbbecc 00fbbea4 0001e1
d8
00fbbea0: 0002f774 003f52a0 00fbbf2c 00fba000 00fba000 0000000b 20000093 000d36
bc
00fbbec0: 00fbbedc 00fbbed0 0001e9c8 0001e14c 00fbbef4 00fbbee0 00018aac 0001e8
ec
00fbbee0: 00fba000 00000001 00fbbf04 00fbbef8 00018ae0 000189f0 00fbbf28 00fbbf
08
00fbbf00: 00019af8 00018ad4 e59c3014 00fbbf60 fffffff7 00fba000 00f4ff44 00fbbf
80
00fbbf20: 00fbbf2c 000146a0 00019a68 00000003 20000093 20000013 003e163c 000000
05
00fbbf40: 00f4ff44 fffffff7 00fba000 00f4ff44 00000003 00f45f44 00fbbf80 000000
01
00fbbf60: 00fbbf74 0002fc44 00030c8c 20000093 ffffffff 00fbbfac 00fbbf84 0002fc
44
00fbbf80: 00030c5c 000152f0 00015138 00000000 00f4ff44 00000003 00fba000 00014b
40
00fbbfa0: 00000000 00fbbfb0 000149a0 0002fc34 00000000 000151d4 00000003 00f4ff
44
00fbbfc0: 00000005 00000000 00000000 00f4ff44 00000003 00000001 00f4ffa0 000000
00
00fbbfe0: 00f45f44 00f4ff40 00f4ff44 00f4ff30 00f40148 00f41e88 60000010 000000
03
Backtrace:
Function entered at [] from []
r6 = 00000003 r5 = 003E1520 r4 = 00000001
Function entered at [] from []
Function entered at [] from []
Function entered at [] from []
r5 = 00000001 r4 = 00FBA000
Function entered at [] from []
Function entered at [] from []
r8 = 00F4FF44 r7 = 00FBA000 r6 = FFFFFFF7 r5 = 00FBBF60
r4 = E59C3014
Function entered at [] from []
Function entered at [] from []
r8 = 00014B40 r7 = 00FBA000 r6 = 00000003 r5 = 00F4FF44
r4 = 00000000
Code: e24cb004 e1a04000 (e5945014) e1a06001 e3550000
pid 45: failed 11
/usr>
|
open 什么事情也没做当然应该没问题,buffer 是否分配空间,static ssize_t sd2300_read ( struct file *fp, char *buf, size_t count, loff_t *ptr)
{
int total;
if( verify_area(VERIFY_WRITE, buf, count) == -EFAULT)
return -EFAULT;
for(total = 0; total
{
int total;
if( verify_area(VERIFY_WRITE, buf, count) == -EFAULT)
return -EFAULT;
for(total = 0; total
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
站内导航:
特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!