Hello, I try to reference in kernel code mcspi status register (MCSPI_CHxSTAT - 0x30 offset from 0x48098000 or 0x4809A000) in kernel code, but it results in segmentation fault: ioaddr = ioremap_nocache(0x4809A000, SZ_4K); *(( unsigned int*) (ioaddr+0)) = 0x12; val = *(( unsigned int*) (ioaddr+0x30)); printk("mymem 0x%x\n",val); <<----------------- I have re-checked the config of kernel, is it related to some device using spi ? [ 24.126739] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa09a030 [ 24.134948] Internal error: : 1028 [#1] PREEMPT [ 24.139678] last sysfs file: [ 24.142791] Modules linked in: rtc(+) [ 24.146667] CPU: 0 Not tainted (2.6.37 #357) [ 24.151519] PC is at rtcspi_init+0x20/0x9c [rtc] [ 24.156372] LR is at rtcspi_init+0x1c/0x9c [rtc] [ 24.161193] pc : [<bf000498>] lr : [<bf000494>] psr: 80000013 [ 24.161193] sp : cc847e68 ip : 000fffff fp : 00000000 [ 24.173248] r10: 00000000 r9 : bf000478 r8 : c056b300 [ 24.178710] r7 : 00000000 r6 : bf00129c r5 : 00000018 r4 : 00000000 [ 24.185546] r3 : 00000012 r2 : 00000000 r1 : 00001000 r0 : fa09a000 [ 24.192382] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user [ 24.199859] Control: 10c5387d Table: 8c8c4019 DAC: 00000015 [ 24.205902] Process insmod (pid: 78, stack limit = 0xcc8462f0) [ 24.212005] Stack: (0xcc847e68 to 0xcc848000) [ 24.216583] 7e60: 00000093 c02c8a44 00000000 c0034364 bf00129c c008be18 [ 24.225158] 7e80: 00000000 c00d1080 00000000 00000000 00000018 bf00129c 00000000 cc847f64 [ 24.233734] 7ea0: ce0a962c 00000000 00000093 c00a4090 00000000 00000000 c02d0b08 c02d0b08 [ 24.242309] 7ec0: c008621c bf0012a8 c053a88c c02d09f8 ce0a96f4 ce0a96f8 ce0c0eff ce0baf88 [ 24.250885] 7ee0: cc846000 c02d0aa8 ce0a8000 00018f13 ce0baa38 ce0ba8da ce0c0b40 cd33a8c0 [ 24.259460] 7f00: 0000140c 00001a4c 00000000 00000000 00000022 00000023 0000000c 00000009 [ 24.268035] 7f20: 00000007 00000000 6e72656b 00006c65 00000000 00000000 00000000 00000000 [ 24.276611] 7f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 24.285186] 7f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c039a600 [ 24.293762] 7f80: 60000010 be837b78 00000000 be837ea8 00000080 c003f988 cc846000 00000000 [ 24.302337] 7fa0: 00000000 c003f7c0 be837b78 00000000 0008a040 00018f13 0007be88 00000000 [ 24.310913] 7fc0: be837b78 00000000 be837ea8 00000080 be837ea4 be837ea8 00000001 00000000 [ 24.319488] 7fe0: 00000069 be837b64 000143fc 4018d7d4 60000010 0008a040 8d7fe021 8d7fe421 [ 24.328094] [<bf000498>] (rtcspi_init+0x20/0x9c [rtc]) from [<c0034364>] (do_one_initcall+0x34/0x1b4) [ 24.337799] [<c0034364>] (do_one_initcall+0x34/0x1b4) from [<c00a4090>] (sys_init_module+0xc0/0x17e0) [ 24.347473] [<c00a4090>] (sys_init_module+0xc0/0x17e0) from [<c003f7c0>] (ret_fast_syscall+0x0/0x3c) [ 24.357055] Code: e30a0000 e3440809 eb416d96 e3a03012 (e5901030) [ 24.363800] ---[ end trace b6cb7a9e5a4e658c ]--- Segmentation fault Is there any idea what's wrong ? Regards, Ran -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html