Unhandled fault: external abort

Hi,

I am trying to set up the timer registers but i'm getting the error:

Unhandled fault: external abort on non-linefetch (0x1008) at 0xc885801c
Unhandled fault: external abort on non-linefetch

The address are correct, i have spend a lot of time in this error
withou success. Anyone could help me please?

Part of my code:

#define GPT2_BASE 0x49032000 /* Timer 2 */
#define TIER_GPT2 (0x4903201C - GPT2_BASE)

static int __init scmd_init(void)
{
  unsigned char *registers;

  registers = ioremap(GPT2_BASE, 0x1000); //4K

        printk("Registers: %x",registers);

  outl(0x0001, registers + TIER_GPT2); /* enable match interrupt */ ->
Error ocurr here!
}

Error:
[root@beagleboard /]# insmod driver.ko
Registers: c8858000 Registers: c8858000 <1>Unhandled fault: external
abort on non-linefetch (0x1008) at 0xc885801c
<1>Unhandled fault: external abort on non-linefetch (0x1008) at
0xc885801c
Internal error: : 1008 [#1]
Internal error: : 1008 [#1]
Modules linked in:Modules linked in: driver(P) driver(P)

Thanks

It doesn't look like you enabled the timer interface clock, and that
is the error you normally get when attempting to access an address
whose interface clock isn't enabled.

Hi,

Thanks for you answer. Could you tell me which register should i use
to enable the timer interface clock? Its the first time i work with
timers... i was looking up at TMR, and seems to be the register
TIOCP_CFG, correct?

Regards,
João Paulo