Hi,
I'm trying to access DIO registers from kernel space but it
redirects the address to upper addresses. Here's a snippet of the code
and what's happening after insmod'ing it.
Can anyone of you help me? I don't want to use the user space model
for accessing those pins because I need interrupts and minimal access
times.
#define GPIOCR 0x12000000UL
#define GPIODDR 0x12000001UL
#define GPIODR 0x12000001UL
function()
{
...
gpiocr = inl(GPIOCR);
gpioddr = inl(GPIODDR);
gpiodr = inl(GPIODR);
...
}
Result:
Unable to handle kernel paging request at virtual address 72000000
pgd = c511c000
[72000000] *pgd=00000000, *pmd = 00000000
Internal error: Oops: 5
CPU: 0
pc : [<c6021070>] lr : [<c602106c>] Tainted: P
sp : c413bf10 ip : 72000000 fp : c072bce0
r10: 00188418 r9 : c413a000 r8 : ffffffea
r7 : 00000060 r6 : c511a000 r5 : c6021000 r4 : 00000000
r3 : a0000093 r2 : 00000001 r1 : 00000001 r0 : 00000019
Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment user
Control: C000317F Table: 0511C000 DAC: 00000015
Process busybox (pid: 91, stack limit = 0xc413a368)
Stack: (0xc413bf10 to 0xc413c000)
bf00: c023a530 00000004 c511a000
c1139000
bf20: c603b000 00000060 c6031000 c6021060 000001e8 00000000 00000000
00000000
bf40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
bf60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
bf80: 00000000 00000028 000001e8 00188418 00000080 c022c704 c413a000
000001e8
bfa0: 00000000 c022c560 000001e8 00188418 00900080 0017f3f8 00188418
00000000
bfc0: 00000028 000001e8 00188418 c6021000 0017f3f8 0008b0a0 000001e8
7ffffe2c
bfe0: 7fffda24 7fffda18 0006aecc 2ac3f130 60000010 00900080 00000000
003b6001
Backtrace: frame pointer underflow
Backtrace aborted due to bad frame pointer <c072bce0>
Code: e52de004 e59f0020 eb000052 e3a0c472 (e59c1000)
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|