From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ybbsmtp05.mail.mci.yahoo.co.jp (ybbsmtp05.mail.mci.yahoo.co.jp [210.80.241.154]) by ozlabs.org (Postfix) with SMTP id 83491679F7 for ; Mon, 16 May 2005 16:52:03 +1000 (EST) Message-ID: <42884448.6040505@ybb.ne.jp> Date: Mon, 16 May 2005 15:57:12 +0900 From: Takeharu KATO MIME-Version: 1.0 To: Kumar Gala References: <427BDBCF.8030908@ybb.ne.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Glenn Burkhardt , "Gala Kumar K.-galak" , linuxppc-embedded@ozlabs.org Subject: Re: [PATCH] BOOKE_WDT Part 1/2 (Re: PPC 44x Watchdog timer) List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.