Subject: Re: [PATCH] BOOKE_WDT Part 1/2 (Re: PPC 44x Watchdog timer)

From: Takeharu KATO <[email-masked]>
Date: Mon, 16 May 2005 15:57:12 +0900

Hi Kumar:

I'm sorry that the reply becomes slow.

Kumar Gala wrote:
>>
> 
> Any reason you moved this code into DecrementerHandler?
> 
>>   /* 0x1000 - Programmable Interval Timer (PIT) Exception */
>>          START_EXCEPTION(0x1000, Decrementer)
>>  -       NORMAL_EXCEPTION_PROLOG
>> -       lis     r0,TSR_PIS@h
>> -       mtspr   SPRN_TSR,r0             /* Clear the PIT exception */
>>  -       addi    r3,r1,STACK_FRAME_OVERHEAD
>> -       EXC_XFER_LITE(0x1000, timer_interrupt)
>> +       b    DecrementerHandler
>>
Current PIT exception handler is too big.
If it is not moved, compilation is failed with relocation error.
Because current PIT handler overwrites WDT handler's codes, the compiler 
can not relocate PIT and WDT handler correctly.